Question

The VPS iptables records limit (numiptent) might affect the work of Plesk's Fail2Ban.

Hi, I had a situation with my previous Plesk install on VPS which could be the result of iptables records limit was exceeded. Can you please advise how can this get resolved to re-enable proper function of my fail2ban firewall?

fail2ban.utils [2399]: ERROR 7efd4c087210 – returned 1 fail2ban.CommandAction [2399]: ERROR Invariant check failed. Trying to restore a sane environment fail2ban.utils [2399]: Level 39 7efd4c1a95e0 – exec: iptables -w -D INPUT -p tcp -m multiport --dports smtp,smtps,submission -j f2b-plesk-postfix iptables -w -F f2b-plesk-postfix iptables -w -X f2b-plesk-postfix fail2ban.utils [2399]: ERROR 7efd4c1a95e0 – stderr: “iptables v1.6.1: Couldn’t load target f2b-plesk-postfix':No such file or directory" fail2ban.utils [2399]: ERROR 7efd4c1a95e0 -- stderr: '' fail2ban.utils [2399]: ERROR 7efd4c1a95e0 -- stderr: "Try iptables -h’ or ‘iptables --help’ for more information.” fail2ban.utils [2399]: ERROR 7efd4c1a95e0 – stderr: ‘iptables: No chain/target/match by that name.’ fail2ban.utils [2399]: ERROR 7efd4c1a95e0 – stderr: ‘iptables: No chain/target/match by that name.’ fail2ban.utils [2399]: ERROR 7efd4c1a95e0 – returned 1 fail2ban.utils [2399]: Level 39 7efd4c087210 – exec: iptables -w -n -L INPUT | grep -q ‘f2b-plesk-postfix[ \t]’ 915 fail2ban.utils [2399]: ERROR 7efd4c087210 – returned 1 915 fail2ban.CommandAction [2399]: CRITICAL Unable to restore environment 915 fail2ban.actions [2399]: ERROR Failed to execute ban jail ‘plesk-postfix’ action ‘iptables-multiport’ info

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!