Enable or Disable ping reply temporarily
Disable ping reply Temporarily
You can temporarily disable the ping reply using the following method.
# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
Please note that this setting will be erased after the reboot. To disable ping reply permanently (even after the reboot), follow the step mentioned below.
Also, to enable the ping reply back, set the value to “0” as shown below.
# echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all