My server is Ubuntu 12.04:-> IP 192.168.56.100
I have a client Ubuntu 13.04:-> IP 192.168.56.101
I have to block the ping from client to server So I wrote the IPTABLE rule.
iptables -A INPUT -i eth0 -p ICMP -s 192.168.56.101 -j DROP
Now client can't ping to the Server that part is fine, but server can't ping to client which should not be happening. Before adding this rule both the server and client could ping each other.
Please tell me what am I missing here...
Answers given are correct but how does it works....???
Adding --icmp-type
echo-request does resolve the issue but this rule is being added to the INPUT chain rules, so how can this rule anyway mess with the OUTPUT chain, as it's blocking the ping to client.