Fail2ban does not block IPs: Couldn't load target No such file or directory

Created:

2017-07-21 19:05:05 UTC

Modified:

2017-08-16 16:46:04 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Fail2ban does not block IPs: Couldn't load target No such file or directory

Applicable to:

  • Plesk Onyx for Linux

Symptoms

Fail2ban does not block IPs. Following error can be found in /var/log/fail2ban.log for different jails:

`iptables -w -X f2b-plesk-login -- stderr: "iptables v1.4.21: Couldn't load target `f2b-plesk-login':No such file or directory\n\nTry `iptables -h' or 'iptables --help' for more information.\niptables: No chain/target/match by that name.\niptables: No chain/target/match by that name.\n"
2017-07-11 17:13:10,883 fail2ban.action
ERROR  iptables -w -D INPUT -p tcp -m multiport --dports 8880,8443 -j f2b-plesk-login` fail2ban.filter
[15768]: WARNING Unable to find a corresponding IP address for ::1/128: [Errno -2] Name or service not known
ERROR   Failed to execute ban jail 'plesk-postfix' action 'iptables-multiport' info 'CallingMap({'ipjailmatches': <function <lambda> at 0x7f8b262519b0>,

Fail2ban chains don't exist:

# iptables -L | grep  f2b
#

Cause

Fail2ban chains were removed from iptables.

Resolution

1. Remove the non-existent IP addesss from the Fail2Ban list at Tools & Settings > IP Address Banning > Trusted IP Addresses
1.png

2. Restart the service at Tools & Settings > Services Management > IP Address Banning (Fail2ban)

2.png

Have more questions? Submit a request
Please sign in to leave a comment.