Ubuntu中禁PING

禁止
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
允许
echo 0 > /proc/sys/net/ipv4/icmp_echo_ignore_all

点赞