临时

sudo sysctl -w net.ipv4.icmp_echo_ignore_all=1

永久

  1. 修改配置
# file: /etc/sysctl.conf
net.ipv4.icmp_echo_ignore_all = 1
  1. 应用配置
sudo sysctl -p