Tag Archives: deny server ping

How to Deny Access To Your Server From a Certain IP Using iptables

I you’re running a web server, you should have noticed that some IP addresses can be found trying to crack your passwords or issuing different queries trying to find a vulnerability in your scripts. If your main Linux firewall is iptables, there are lots of opportunities to enable/disable access using different conditions. We will close incoming connections for… Read More »

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 »