source: http://crycode.de/wiki/Fail2Ban, Peter Tuch
license: http://creativecommons.org/licenses/by/4.0/
Updated for Debian 8 (2017/02/15)
jail.local
# Fail2Ban [fail2ban] enabled = true filter = fail2ban banaction = iptables-allports protocol = all port = anyport logpath = /var/log/fail2ban.log # findtime: 1 week findtime = 604800 # bantime: 1 week bantime = 604800 maxretry = 5
/etc/fail2ban/filter.d/fail2ban.conf
[Definition] failregex = fail2ban.actions\[(.*)\]: WARNING \[(.*)\] Banignoreregex = fail2ban.actions\[(.*)\]: WARNING \[fail2ban\] Ban