1、允许PING设置
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT
或者也可以临时停止防火墙操作的。
service iptables stop

2、禁止PING设置
iptables -A INPUT -p icmp --icmp-type 8 -s 0/0 -j DROP

相关文章:

  • 2022-12-23
  • 2022-03-03
  • 2022-02-14
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-10-04
猜你喜欢
  • 2021-12-23
  • 2021-11-23
  • 2021-06-22
  • 2022-01-05
  • 2022-02-07
相关资源
相似解决方案