Disable ICMP (PING)

Disable ICMP (PING)

vi etc/sysctl.conf

net.ipv4.icmp_echo_ignore_all=1

sysctl -p
OR

to disable
echo 1>/proc/sys/net/ipv4/icmp_echo_ignore_all
to enable
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.