Linux (28) Python (13) Raspberry Pi (5) Bugs (3) Install (3) C (2) Brainf**k (1) HTML (1) Maths (1) Sorts (1)

Monday, 14 September 2015

How to turn off ping replies.

The ping command can be useful to check if a machine is running however this can make your server more vulnerable to hacking.
If you want to turn the ping reply off use this command

sysctl -w net.ipv4.icmp_echo_ignore_all=1

To turn it back on again

sysctl -w net.ipv4.icmp_echo_ignore_all=0