How to Block ping into my m/c ??
How can I block ping in my m/c, is there any way to do that.
And is there any way to know who is pinging, who has pinged to m/c ??? |
2 iptables rules similar to this should do what you need:
Code:
iptables -I INPUT -m limit -p icmp --icmp-type echo-request -j LOG --log-prefix="ping..." |
yes im fully agree with Demonbane blocking all pings are not a good idea however...if you wants to DROP all sorta pingy then
iptables -A INPUT -p icmp -j DROP or here is a kernel hack echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all regards |
thanx Demonbane && mardanian
@mardanian Quote:
-jack |
All times are GMT -5. The time now is 11:45 PM. |