Ubuntu – fail2ban – SSH – Dovecot – Postfix

Genervt von den Bruteforce Login Versuchen?

# aptitude install fail2ban iptables
# cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local

# vi /etc/fail2ban/jail.local

destemail = Webmaster@
ignoreip = 127.0.0.1/8 aaa.bbb.ccc.ddd/32 eee.fff.ggg.hhh/24

[dovecot]
enabled = true

[postfix]
enabled  = true

[postfix-sasl]
enabled = true

[proftpd]
enabled  = true

# /etc/init.d/fail2ban restart