• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Resolved Fail2Ban Causes 502 Bad Gateway

misterblack

New Pleskian
I am running Plesk 12.5.30 Update #56 on CentOS 7.

This morning I started getting 502 Bad Gateway errors for all websites hosted on my VPS. If I disable Fail2Ban the error goes away.

I think the Plesk CP may have been updated last night.

I have tried rereading ip but stil whenever I re-enable Fail2Ban I get the 502 Bad Gateway errors.

Ideas anyone? Server admin is not my speciality so please be nice.

Thanks
 
The cause of this issue is that fail2ban reads all these requests from the reverse proxy and interprets it as a hacker attack. It then blocks access for Nginx to Apache, because it thinks, it is a brute force attack.

Solution: Please add your host's public IPv4 address and the IP address 127.0.0.1 to fail2ban's whitelist.
 
Back
Top