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-
♂
(160 bytes)
()
12/12/2008 postreply
10:49:36
•
有一個iptable script
-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-
♂
(135 bytes)
()
12/12/2008 postreply
11:33:32
•
Please see my second reply above
-code112-
♂
(0 bytes)
()
12/12/2008 postreply
13:40:19