How could I add a rule so that Cloudflare drops any ICMP echo ping requests?

I am currently attempting to host two email services in the same web server, and whilst that has been successful to an extent, I would like to make it so my server itself is unreachable to ICMP echo requests, as to avoid constant tracerouting due to the use case this server will have, but blocking ICMP requests in the server itself is not enough, I would like to add a rule so that Cloudflare blocks/drops the requests before they even reach my server, how could I do that?

ICMP cannot come through Cloudflare anyway. The Cloudflare proxy only forwards HTTP/HTTPS traffic (or TCP/UDP if using Enterprise Spectrum).

If you want to block ICMP, it needs to be done at your server or upstream provider.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.