Created
September 21, 2016 08:39
-
-
Save kevin39/a2fdf816241e3db7e28beea87bae91ec to your computer and use it in GitHub Desktop.
Enable or Disable ping reply temporarily
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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