• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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