How to Configure Fail2Ban

Notes to self, running on Ubuntu 20.04. This is to ban access to a specific web page rather than a service like SSH. Install fail2ban. pyinotify is the default backend. In /etc/fail2ban, copy jail.conf to jail.local. Edit jail.local by uncommenting the ignoreip line and adding your IP address so you don’t accidentally lock yourself out. … Read more