How to ignore ping requests
Typically if you’re behind a router this will only affect the internal network unless you have some port forwarding going on, but if you’re not behind another router or firewall this can block the outside world from sending ICMP requests to your machine.
To turn answers to icmp_echos (ping) off, as root type:
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
and to turn it on again type:
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all
Note: the iptables frontend “Firestarter” enables you do to this via a gui interface as well.













