Tag Archives: deny icmp requests on linux

How to Deny Responses to Ping Requests Using iptables

Sometimes you need to “hide” your server by denying responses to ping requests. This way your server will look like it is offline. ping <server_ip> will return connection timeout. There is a short linux command that will allow to do this using iptables. Here it is: iptables -t filter -A INPUT -p icmp -j REJECT This will ignore… Read More »