ban hosts that cause multiple authentication errors
Version included in wheezy repository (0.8.6) has serious issues with timezones and other bugs, so you would like to use last version from git repository
git clone https://github.com/fail2ban/fail2ban.git
cd fail2ban python setup.py install
cp config/* /etc/fail2ban/
iptables --version
lockingopt =
cp files/debian-initd /etc/init.d/fail2ban update-rc.d fail2ban defaults service fail2ban start
pip uninstall fail2ban
DELETE FROM bans WHERE DATE(timeofban, 'unixepoch') < '2020-01-01'; VACUUM;
change default context in /etc/fail2ban/filter.d/asterisk in following line
^(%(__prefix_line)s|\[\]\s*)%(log_prefix)s Call from '[^']*' \(<HOST>:\d+\) to extension '\d+' rejected because extension not found in context 'default'\.$