linux禁止ping

RayDon 2011-04-09

[root@redhat7 root]# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

如果要恢复,只要:

[root@redhat7root]#echo0>/proc/sys/net/ipv4/icmp_echo_ignore_all

相关推荐