Disable ping response Temporarily
To disable the PING response, login as root and type the following command
# echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
To reenable the PING response do this:
# echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all
Disable ping response Permanently
Edit the /etc/sysctl.conf file and add the following line
net.ipv4.conf.icmp_echo_ignore_all = 1
Execute sysctl -p to enforce this setting immediately
# sysctl -p
禁用与启用Ping响应
本文介绍了如何临时及永久地禁用Linux系统的Ping响应。通过简单的命令操作即可实现,并提供了恢复Ping响应的方法。同时,文章还说明了如何通过配置文件来达到永久禁用的目的。

1万+

被折叠的 条评论
为什么被折叠?



