Make Linux ignore a ping

Posted October 18, 2003 by skreuzer in Linux security

Sometimes it can be useful to hide a Linux machine a bit. These commands will force your linux box to ignore a ping request.

To turn answers to icmp_echos off, as root type:
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

and to turn it on again type:
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

The Conversation

Follow the reactions below and share your own thoughts.