如何开启和禁止Linux系统的ping功能

2025-04-22 20:08:48
推荐回答(1个)
回答1:

修改/etc/sysctl.conf,加入:
net.ipv4.icmp_echo_ignore_all=1
然后执行sysctl -p