1.     系统禁止ping

#echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all

2.     系统允许ping

#echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all

image.png