Wednesday, July 1, 2009

How to enable and disable ping request

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

No comments:

Post a Comment