as example:
you have in your jail.local
Code:
[proftpd]
enabled = true
port = ftp
filter = proftpd
logpath = /var/log/auth.log
failregex = proftpd: \(pam_unix\) authentication failure; .* rhost=<HOST>
maxretry = 5
this means that fail2ban looks into
/var/log/auth.log
for something that begins with
proftpd: pam_unix *something* authentication failure; *something* rhost=<*IP*>
if it found this 5 times it will block *IP* from that line in log file.
if proftpd creates failed authentication logs in /var/log/auth.log that looks like failregex line then it will block that IP.
here is example from my log:
Code:
Sep 6 19:57:15 my_domain proftpd: pam_unix(proftpd:auth): authentication failure; logname= uid=0 euid=0 tty= ruser=backup rhost=::ffff:79.15.63.24 user=backup
and fail2ban response in /var/log/fail2ban.log
Code:
2009-09-06 19:58:03,248 fail2ban.actions: WARNING [proftpd] Ban 79.15.63.24
Recent comments
1 day 4 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 16 hours ago
2 days 6 hours ago
2 days 6 hours ago
2 days 11 hours ago
2 days 18 hours ago
2 days 18 hours ago
2 days 20 hours ago