image
Fail2Ban scans log files like /var/log/auth.log and bans IP addresses conducting too many failed login attempts. It does this by updating system firewall rules to reject new connections from those IP addresses, for a configurable amount of time. Fail2Ban comes out-of-the-box ready to read many standard log files, such as those for sshd and Apache, and is easily configured to read any log file of your choosing, for any error you wish. Though Fail2Ban is able to reduce the rate of incorrect authentication attempts, it cannot eliminate the risk presented by weak authentication. Set up services to use only two factor, or public/private authentication mechanisms if you really want to protect services. More documentation, FAQ, and HOWTOs to be found on fail2ban(1) manpage, Wiki , Developers documentation and the website: https://www.fail2ban.org Installation: It is possible that Fail2Ban is already packaged for your distribution. In this case, you should use that instead. Required: Python2 >= 2.6 or Python >= 3.2 or PyPy Optional: pyinotify >= 0.8.3 , may require: Linux >= 2.6.13 gamin >= 0.0.21 systemd >= 204 and python bindings: python-systemd package dnspython To install: tar xvfj fail2ban-0.11.0.tar.bz2 cd fail2ban-0.11.0 sudo python setup.py install Alternatively, you can clone the source from GitHub to a directory of Your choice, and do the install from there. Pick the correct branch, for example, 0.11 git…