- sudo apt-get install fail2ban
[apache-nohome] enabled = true port = http,https filter = apache-nohome logpath = /var/log/apache*/*error.log maxretry = 5
- fix a bug in the filter
failregex = [client (?P<host>\S*)] File does not exist:
- Restart /etc/init.d/fail2ban restart
- Check that fail2ban has started.
sudo fail2ban-client status Status |- Number of jail: 2 `- Jail list: apache-nohome, ssh