Skip to content

Instantly share code, notes, and snippets.

@kevin39
Created September 21, 2016 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevin39/a2fdf816241e3db7e28beea87bae91ec to your computer and use it in GitHub Desktop.
Save kevin39/a2fdf816241e3db7e28beea87bae91ec to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment