• 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.

Question Unban fail2ban per custom Jail?

Azurel

Silver Pleskian
I can create a jail for a custom log and ban new entries (ips). Is the opposite way possible here? For a particular "jail" to unban IPs when they new appear in defined logfile?

In a jail you can set "logpath" for a file that bans. Is here a another line for unban per file instead ban?
 
Looking at the fail2ban documentation I think this is isn't possible. However it is an interesting thought.

You could create a bash script to read a specific log file and use the Plesk CLI to unban an IP address.
plesk bin ip_ban --unban 10.0.0.1,ssh

Use full link:
 
Back
Top