I wanna block ping from outside the company to my server, so I have the following iptables rules:
-A INPUT -p icmp --icmp-type 8 -s ! 192.168.0.0/16 -j DROP -A OUTPUT -p icmp --icmp-type 0 -d ! 192.168.0.0/16 -j DROP
However, the above rules aren't working as expected, I can still ping the server from both inside and outside the company. What's wrong with that?!