Add PureFTP service to Fail2ban – Ubuntu
Add PureFTP service to Fail2ban – Ubuntu
Date Posted: 23-06-2017
Prerequisites:
- Ubuntu Host
- Fail2Ban Service – Incase, if fail2ban service is not installed, follow the below mentioned post to install.
Implementation:
Copy the file pure-ftpd.conf to pureftpd.conf
cp /etc/fail2ban/filter.d/pure-ftpd.conf /etc/fail2ban/filter.d/pureftpd.conf
Open the file /etc/fail2ban/jail.local and append the below lines.
vi /etc/fail2ban/jail.local
[pureftpd] enabled = true port = ftp filter = pureftpd logpath = /var/log/syslog maxretry = 3
Restart the fail2ban service.
systemctl restart fail2ban
Check the pureftpd added on fail2ban.
fail2ban-client status