• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Fail2Ban is ignoring maxretry/ ip found after ban

KarleyLo

New Pleskian
We are Blocking a Bruteforce with Fail2Ban and i discovered that sometimes the IPs are not blocked after the maxretry or the IP is found after ban.

We have set the maxretry to 3 :

[ssh]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
iptables-allports[chain="INPUT", name="default", port="ssh", protocol="tcp", blocktype="REJECT --reject-with icmp-port-unreachable", returntype="RETURN", lockingopt="-w", iptables="iptables <lockingopt>"]
logpath = /var/log/secure
maxretry = 3

but when i check the logs i can see that sometime, the same ip is found more than 3 times :

/var/log/fail2ban.log:
ban1.PNG

grep "Failed pass" /var/log/secure:
ban2.PNG

Can someone help us with this?
 
Regarding @Brujo 's comment: It is correct that in this case Fail2Ban simply isn't fast enough to block the IP before it exceeds the set limit. No worries about that. Simply leave your configuraton as it is.

Regarding the "WARNING" message: If your system is not using Fail2Ban version 0.10 or new that can utilize ip6tables to block IPv6 attacks, it is strongly recommended to disable IPv6 altogether on the system, because else attacks can be launched successfully using an IPv6 route. These will never be blocked by the normal Fail2Ban and iptables.
 
Back
Top