• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question [Fail2ban] Error: f2bmng failed: ERROR:__main__:Iptables action with name="default" already exists in jail

Azurel

Silver Pleskian
I want create two Jails in Fail2ban with same action
iptables-allports[chain="INPUT", name="default", port="ssh", protocol="tcp", blocktype="REJECT --reject-with icmp-port-unreachable", returntype="RETURN", lockingopt="-w", iptables="iptables <lockingopt>"]

First Jail working fine. Save second jail I got a error message
Error: f2bmng failed: ERROR:__main__:Iptables action with name="default" already exists in jail my_custom_jail_1

I changed name="default" to name="custom" and saved, but nothing is banned. So changing the name was fine or is this rule in iptables-allports undefined?
 
Okay, the problem here is: Edit file within WinSCP (append line with IP and press enter and save file) nothing happen. Add exact same line with a script, new added ips are instand banned. Does anyone know why this is so?
 
Back
Top