• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Issue Fail2Ban Error

mytoby

New Pleskian
Server operating system version
Ubuntu 22.04.5 LTS
Plesk version and microupdate number
18.0.67
2025-03-06 14:00:23,548 fail2ban.transmitter [724]: ERROR Command ['status', 'sshd'] has failed. Received UnknownJailException('sshd')
2025-03-06 14:21:27,049 fail2ban.actions [724]: NOTICE [plesk-permanent-ban] Ban 195.2xx.xxx.xxx
2025-03-06 14:21:27,055 fail2ban.utils [724]: ERROR 7fbf138674b0 -- exec: iptables -w -I f2b-plesk-permanent-ban 1 -s 195.2xx.xxx.xxx -j REJECT --reject-with icmp-port-unreachable
2025-03-06 14:21:27,056 fail2ban.utils [724]: ERROR 7fbf138674b0 -- stderr: 'iptables: No chain/target/match by that name.'
2025-03-06 14:21:27,056 fail2ban.utils [724]: ERROR 7fbf138674b0 -- returned 1
2025-03-06 14:21:27,066 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- exec: for proto in $(echo 'tcp,udp' | sed 's/,/ /g'); do
iptables -w -C INPUT -p $proto -j f2b-plesk-permanent-ban
done
2025-03-06 14:21:27,066 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- stderr: "iptables v1.8.7 (nf_tables): Chain 'f2b-plesk-permanent-ban' does not exist"
2025-03-06 14:21:27,066 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- stderr: "Try `iptables -h' or 'iptables --help' for more information."
2025-03-06 14:21:27,067 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- stderr: "iptables v1.8.7 (nf_tables): Chain 'f2b-plesk-permanent-ban' does not exist"
2025-03-06 14:21:27,067 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- stderr: "Try `iptables -h' or 'iptables --help' for more information."
2025-03-06 14:21:27,067 fail2ban.utils [724]: ERROR 7fbf10e8a810 -- returned 2
2025-03-06 14:21:27,067 fail2ban.CommandAction [724]: ERROR Invariant check failed. Trying to restore a sane environment
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- exec: for proto in $(echo 'tcp,udp' | sed 's/,/ /g'); do
iptables -w -D INPUT -p $proto -j f2b-plesk-permanent-ban
done
iptables -w -F f2b-plesk-permanent-ban
iptables -w -X f2b-plesk-permanent-ban
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: "iptables v1.8.7 (nf_tables): Chain 'f2b-plesk-permanent-ban' does not exist"
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: "Try `iptables -h' or 'iptables --help' for more information."
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: "iptables v1.8.7 (nf_tables): Chain 'f2b-plesk-permanent-ban' does not exist"
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: "Try `iptables -h' or 'iptables --help' for more information."
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: 'iptables: No chain/target/match by that name.'
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- stderr: 'iptables: No chain/target/match by that name.'
2025-03-06 14:21:27,079 fail2ban.utils [724]: ERROR 7fbf13863a50 -- returned 1
 
And the jail "plesk-permanentban" has also an error (ip is making privacy - but it is the same ip):
103.1.1.1plesk-permanent-ban
103.1.1.1plesk-postfix
the first line is making manual and the second line is automatically from plesk. so it is double.
 
The root cause seems to be that some iptables chains were not added, and that might be due to either an incompatible iptables or a manually installed Fail2Ban. I suppose the easiest solution will be to remove the Fail2Ban component, then make sure it's really removed from the operating system, the reinstall it through Plesk. At least this is mostly risk-free.
 
It is a Bug, with "plesk-permanent-ban"! All Bans with this jails are still coming IN, see the Mail Log:
2025-03-08 10:33:46infopostfix/smtpd [192771]disconnect from unknown[87.120.--] ehlo=1 commands=1
2025-03-08 10:33:46infopostfix/smtpd [192771]timeout after EHLO from unknown[87.120.--]
2025-03-08 10:30:33infopostfix/anvil [192773]statistics: max cache size 3 at Mar 8 10:24:46
2025-03-08 10:30:33infopostfix/anvil [192773]statistics: max connection rate 5/60s for (smtp:87.120.--) at Mar 8 10:25:13
2025-03-08 10:28:45infopostfix/smtpd [192771]connect from unknown[87.120.--]
2025-03-08 10:28:36infopostfix/smtpd [253912]disconnect from unknown[87.120.--.--] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
2025-03-08 10:28:32infopostfix/smtpd [253912]connect from unknown[87.120.--]
2025-03-08 10:28:22infopostfix/smtpd [192771]disconnect from unknown[87.120.--] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
2025-03-08 10:28:20infopostfix/smtpd [192771]connect from unknown[87.120.--]
2025-03-08 10:28:14infopostfix/smtpd [253912]disconnect from unknown[87.120.--] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
2025-03-08 10:28:08infopostfix/smtpd [253912]connect from unknown[87.120.--]
2025-03-08 10:27:58infopostfix/smtpd [192771]disconnect from unknown[87.120.--] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
2025-03-08 10:27:55infopostfix/smtpd [192771]connect from unknown[87.120.--]
 
Back
Top