Simple: after everything is working, go to /etc/fail2ban
Here, open jail.conf in your favorite editor. Find the entry:
Code:
[ssh-iptables]
enabled = false
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
sendmail-whois[name=SSH, dest=root@server1.icsys.ro, sender=fail2ban@icsys.ro]
logpath = /var/log/sshd.log
maxretry = 5
and change enable = false to enable = true for SSH. Do the same for the other services you wish to protect, as well. Also add the entry I posted in the previous message, for pure-ftpd.
After saving the file, give the command
service fail2ban restart then check the logs in IPConfig.
Recent comments
1 day 3 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 9 hours ago
2 days 10 hours ago