Simplest method of disabling ping response is to add an entry in /etc/sysctl.conf file. If the Iptables flushes or stop server will start responding to ping responses again. I suggest the following entry in your /etc/sysctl.conf file
net.ipv4.icmp_echo_ignore_all = 1
this will tell kernel to not respond any ping response, after this run sysctl -p on shell to implement the changes without reboot.
To deny responses to ping requests..Add the following iptable rule
I believe
iptables -I INPUT -p icmp --icmp-type 8 -j DROP
should do the trick.For IPv6 you would need something like
ip6tables -I INPUT -p icmpv6 --icmp-type 8 -j DROP
.Simplest method of disabling ping response is to add an entry in /etc/sysctl.conf file. If the Iptables flushes or stop server will start responding to ping responses again. I suggest the following entry in your /etc/sysctl.conf file
this will tell kernel to not respond any ping response, after this run sysctl -p on shell to implement the changes without reboot.
For more info please refer: http://www.trickylinux.net/disable-ping-response-linux/
Drop ICMP echo requests ("Ping"):
What do you mean by stealth? You could just DROP all incoming packets. Google provided this:
But on (my) Ubuntu box, iptables does not know of a "stealth" match. As it seems, you can do lots of interesting stuff with xtables: