Saturday, March 28, 2009

Disable IMCP request in Linux

Disable IMCP request in Linux:-
iptables -A OUTPUT -p icmp --icmp-type echo-request -j DROP

The result:-
harith@nobody:~$ ping server-ayam.harithdawi.com
PING yahoo.com (xxx.xxx.xxx.xxx) 56(84) bytes of data.
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted
ping: sendmsg: Operation not permitted

0 comments: