How to Disable ping

Categories General Info

How to Disable ping to 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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.