Jetpack causing access problems when Cloudflare is enabled, how to fix?
-
If I configure Cloudflare on a site, will Jetpack will connect to the website through the Cloudflare IPs or directly to the web server IP address?
I’m having an issue, after enabling Cloudflare, 24 hours later, I started getting the 521 error from Cloudflare. If I’m lucky to connect to the website, at logon, JetPack will lock me out, showing me an IP from Cloudflare saying that it was my IP address and that IP had security violations.
I have whitelisted the Cloudflare IPs in UFW and fail2ban, but I’m still getting the same errors.
One thing I noticed is that a specific range of IPs from Cloudflare 162.158.x.x getting blocked by UFW, but I whitelisted the range in the firewall already.
The only thing I have found is that long time ago I place a block for xmlrpc.php in the htaccess, but only allowing the IPs from JetPack.
When I checked the apache error logs, I have found that even though I whitelisted the Cloudflare IPs in the firewall, the htacess is blocking access to the xmlrpc.php from any IP.
– Is the htaccess file block code could be causing the 162.158.x.x IPs from still getting blocked by the UFW?
– Why the 162.158.x.x range address are trying to access xmlrpc.php when Cloudflare protects the xmlrpc.php by default?
– Are the 162.158.x.x IPs coming from Jetpack trying to proxy into the site to connect, but it’s getting blocked?
The topic ‘Jetpack causing access problems when Cloudflare is enabled, how to fix?’ is closed to new replies.