Linux : How to disable ICMP echo request

By | January 20, 2013

The easiest way of disabling ICMP echo request on Linux is doing it on the kernel level.

To disable ICMP immediately on a running system, simply enter the following command :

This command will not survive to the next reboot. To make it permanent, edit :

And add :

You can also achieve this through IPtables. Just edit :

And add :

And for IPv6 :