Iptables drops the cloudflare IP addresses

Hi Everyone,

I have a problem with iptables. I added the cloudflare IP’s to whitelist using this document. https://support.cloudflare.com/hc/en-us/articles/201897700-Whitelisting-Cloudflare-IP-addresses

But sometimes iptables drops the cloudflare IP address and my website can’t be reached. What I need to do to prevent this situation?

Here is the screenshot:

Thanks for the support.

I forget to mention that. I also added Cloudflare IP address to my .htaccess document.

htaccess

I’ve never seen iptables adding rules on it’s own. Any chance that there is a software like fail2ban or similar active?

That’s an unnecessary redundancy

1 Like

Hi Mark,

Thanks for the response.

I checked the apache modules. It seams “mod_security” and “mod_evasive” is active. Do you suggest that, disabling these modules?

If I disable them ddos protection is covered by cloudflare right? Do you have any suggestion about Firewall rules or etc. to keep my site from ddos attack?

Thanks.

This topic was automatically closed after 30 days. New replies are no longer allowed.