Sources: http://www.fail2ban.org/wiki/index.php/MANUAL_0_8 http://thanosk.net/content/securing-plesk-installation-using-fail2..
Because fail2ban is not available from CentOS, we should start by downloading the EPEL repository: rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Follow up by installing fail2ban: yum install fail2ban The default fail2ban configuration file is location at /etc/fail2ban/jail.conf. The configuration work should not be done in that file, however, and we should instead make a local copy of ..
Whitelisting is setup in the jail.conf file using a space separated list. [DEFAULT] # “ignoreip” can be an IP address, a CIDR mask or a DNS host. Fail2ban will not # ban a host which matches an address in this list. Several addresses can be # defined using space separator. ignoreip = 127.0.0.1 192.168.1.0/24 22.214.171.124 ..