Tuesday 23 June 2015

Disable Ping on Linux server

How do you disable ping to Linux server? Here is the quick steps:

 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
That's all..! 

No comments:

Post a Comment