Brainf**k (1) Bugs (3) C (1) HTML (1) Install (3) Linux (27) Maths (1) Python (12) Raspberry Pi (4)

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