Pure-FTPd įjungimas į Fail2ban filtravimą [CentOS]
Į failą:
nano /etc/fail2ban/jail.conf
įrašome:
[pure-ftpd] enabled = true port = ftp,ftp-data,ftps,ftps-data filter = pure-ftpd action = iptables[name=PUREFTP, port=ftp, protocol=tcp] sendmail-whois[name=PUREFTP, [email protected]] logpath = /var/log/messages maxretry = 5
Nepamirštame pasikeisti [email protected] į Jūsų el.p. adresą.
Tikriname ar veikia:
#fail2ban-regex /var/log/messages /etc/fail2ban/filter.d/pure-ftpd.conf