请看答案

Type the following command at shell prompt:
# echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all

This instructs the kernel to simply ignore all ping requests (ICMP type 0 messages). To enable ping request type the command:
echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_all

You can add following line to /etc/sysctl.conf file:
# vi /etc/sysctl.conf
Append following line:
net.ipv4.icmp_echo_ignore_all = 1

所有跟帖: 

更进一步的答案 -code112- 给 code112 发送悄悄话 (160 bytes) () 12/12/2008 postreply 10:49:36

有一个iptable script -code112- 给 code112 发送悄悄话 (10 bytes) () 12/12/2008 postreply 10:51:39

It's only disable the ICMP, you can simply do that on your route -daye- 给 daye 发送悄悄话 (135 bytes) () 12/12/2008 postreply 11:33:32

Please see my second reply above -code112- 给 code112 发送悄悄话 (0 bytes) () 12/12/2008 postreply 13:40:19

请您先登陆,再发跟帖!