Fail2ban scans log files and bans IPs that show malicious signs, something like too many password failures and looking for the most common exploits.
Step1. Install Fail2ban on Debian
apt-get install fail2ban
Step2. Configure Fail2ban.
You can configure Fail2Ban using the configuration files located in
The main config file and the most important is
In the following steps I will show you some configuration examples. You can study the Fail2ban man files later.
Step2.1 Add or modify the following line to set email destination for Fail2ban notifications:
destemail = firstname.lastname@example.org Continue Reading...