Originally Posted by admins
Who has a possibility to add pureftp protection for fail2ban?
This is my config that wortks under Debian Lenny and ISConfig 3:
# FTP servers
enabled = true
port = ftp
filter = pure-ftpd
logpath = /var/log/messages
maxretry = 3
This is correct failregex for Debian Lenny:
failregex = pure-ftpd(?:\[\d+\])?: \(.+?@<HOST>\) \[WARNING\] %(__errmsg)s \[.+\]$
Restart your fail2ban and now fail2ban and pure-ftpd works as it should.
You can always tweak maxretry
parameter to suit your needs.