Add PureFTP service to Fail2ban – Ubuntu

Date Posted: 23-06-2017

Prerequisites:

  1. Ubuntu Host
  2. Fail2Ban Service – Incase, if fail2ban service is not installed, follow the below mentioned post to install.

Install Fail2ban on Ubuntu

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

 

Leave a Reply