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

Issue Fail2Ban blocking whitelisted IP for Apache jail while not blocking it for recidive jail.

Bitpalast

Plesk addicted!
Plesk Guru
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Onyx, 17.07 #12, CentOS 7.3 64-Bit

PROBLEM DESCRIPTION
Fail2Ban is blocking whitelisted IPv4 for Apache jail while it is not blocking the same whitelisted IP for recidive jail.

STEPS TO REPRODUCE
Excessively frequent requests from the IP to the same URL, so that an IP is banned.
Then add the IP to the whitelist of fail2ban and unban it.

ACTUAL RESULT
Whitelisted domain is blocked by Apache jail, not blocked by recidive jail.

EXPECTED RESULT
Whitelisted domain should not be blocked by Apache jail.

ANY ADDITIONAL INFORMATION
In this example pay special attention to 10:56:53 and 10:56:59: While the unbanned, whitelisted address is ignored by the recidive jail, it is banned again by the plesk-apache-k jail.
Code:
2017-01-06 10:56:08,235 fail2ban.actions        [11178]: NOTICE  [recidive] Ban 88.77.66.55
2017-01-06 10:56:17,797 fail2ban.actions        [11178]: NOTICE  [recidive] Unban 88.77.66.55
2017-01-06 10:56:29,195 fail2ban.actions        [11178]: NOTICE  [plesk-apache-k] Unban 88.77.66.55
2017-01-06 10:56:53,194 fail2ban.filter         [11178]: INFO    [recidive] Ignore 88.77.66.55 by ip
2017-01-06 10:56:59,041 fail2ban.actions        [11178]: NOTICE  [plesk-apache-k] Ban 88.77.66.55
2017-01-06 10:57:11,993 fail2ban.filter         [11178]: INFO    [recidive] Ignore 88.77.66.55 by ip
2017-01-06 10:57:15,732 fail2ban.filter         [11178]: INFO    [recidive] Ignore 88.77.66.55 by ip
 
Last edited:
Back
Top