- Forums
- Linux Systems
- How To Block All Incoming Pings Coming Into My Linux Server
did you know you can block ICMP incoming pings to your linux server just wanted to post here ans share what i just learned [3066], Last Updated: Tue Feb 07, 2023
wallpaperama
Sat Feb 20, 2010
0 Comments
843 Visits
hi everyone,
just wanted to post here ans share what i just learned
did you know you can block ICMP incoming pings to your linux server
yes, you can, its easy all you have to do is edit this file:
/etc/sysctl.conf
next look for this line:
net.ipv4.icmp_echo_ignore_all
NOTE: if you dont find net.ipv4.icmp_echo_ignore_all then simply added to the last line
be sure the the value is equals to 1 - so make it look like this:
net.ipv4.icmp_echo_ignore_all = 1