If you haven't already, install fail2ban and ufw:
sudo apt-get install fail2ban ufw
Now make a copy of the fail2ban configuration, and name it jail.local
:
<?php // Simple PHP script to lookup for blacklisted IP against multiple DNSBLs at once. ?> | |
<html> | |
<head> | |
<title>DNSBL Lookup Tool - IP Blacklist Check Script</title> | |
</head> | |
<body> | |
<h2>IP Blacklist Check Script</h2> | |
<form action="<?php echo $_SERVER['PHP_SELF'] ?>" method="post"> | |
<input type="text" value="" name="ip"/> | |
<input type="submit" value="LOOKUP"/> |
Inspired by a Gist from kevinelliott - thanks!
Server 2 sockets,6 cores each, 2.4ghz | |
# Set ixgbe options | |
# Limit RSS queues to the number of physical cores per cpu | |
# Disable offload | |
# When you change this, you need to run the command and reboot for it to take. | |
echo "options ixgbe LRO=0,0 MQ=1,1 RSS=6,6 VMDQ=0,0 vxlan_rx=0,0" > /etc/modprobe.d/ixgbe.conf | |
# Shut down HT cores | |
for i in $(seq 1 2 23); do |
<?php | |
namespace App\Models; | |
use Auth; | |
use Illuminate\Database\Eloquent\Model as BaseModel; | |
class Model extends BaseModel | |
{ | |
protected $userAttributes = []; |
#!/bin/bash | |
# @author: Seb Dangerfield | |
# http://www.sebdangerfield.me.uk/?p=513 | |
# Created: 11/08/2011 | |
# Modified: 07/01/2012 | |
# Modified: 27/11/2012 | |
# @author Zhdanov Vladislav | |
# https://github.com/nks | |
# Modified 16/09/2016 |
#!/bin/bash | |
clear | |
echo "$COL_GREEN Radius Manager installer script for CENTOS 6.x 32bit" | |
echo "Copyright 2004-2013, DMA Softlab LLC" | |
echo "All right reserved.. $COL_RESET" | |
echo "$COL_GREEN Script modified by Syed Jahanzaib for CENTOS" | |
# Colors Config . . . [[ JZ . . . ]] | |
ESC_SEQ="\x1b[" | |
COL_RESET=$ESC_SEQ"39;49;00m" |
#!/usr/bin/python | |
from apiclient.discovery import build | |
import httplib2 | |
from oauth2client.service_account import ServiceAccountCredentials | |
from oauth2client.client import GoogleCredentials | |
import logging | |
import json | |
import sys |
In this php example (app/Http/Controllers/Auth/LoginController.php
) my model is called Client
and the custom field for login validation is status
. (Client->status
)
Add in your resources/lang/en/auth.php
file :
'failed_status' => 'Your account is inactive yet. Please confirm your e-mail address.',