Monday, August 29, 2011

How to Disable ping to Linux server?


How to Disable ping to Linux server?

To disable ping

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
To enable ping
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all