Disable ping reply on GNU/Linux

Disable ping reply temporarily
echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Enable the ping reply back

echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

Leave a Reply