• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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