File: //etc/fail2ban/jail.local
#DEFAULT-START
[DEFAULT]
ignoreip = 127.0.0.1/8
bantime = 600
findtime = 300
maxretry = 5
banaction = ufw
action = %(action_mwl)s
#DEFAULT-END
#sshd-START
[sshd]
enabled = true
filter = sshd
port = 28806
maxretry = 5
findtime = 300
bantime = 600
action = %(action_)s
logpath = /var/log/auth.log
#sshd-END
#ftpd-START
[ftpd]
enabled = true
filter = pure-ftpd
port = 21
maxretry = 5
findtime = 300
bantime = 86400
action = %(action_mwl)s
logpath = /var/log/messages
#ftpd-END