允许其他机器ping通防火墙

iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT

iptables -A OUTPUT -p icmp --icmp-type echo-reply -j ACCEPT

以下是防火墙本机ping其他机器的设置

能ping通IP

iptables –A INPUT –p icmp --icmp-type echo-reply –j ACCEPT
iptables –A OUTPUT –p icmp --icmp-type echo-request –j ACCEPT

能ping通回环地址

iptables -A INPUT -i lo -p all -j ACCEPT
iptables –A OUTPUT –o lo –p all –j ACCEPT

能ping通域名

iptables -A INPUT -p udp --sport 53 -j ACCEPT

iptables -A OUTPUT  -p udp --sport 53 -j ACCEPT

相关文章:

  • 2021-11-07
  • 2021-07-08
  • 2022-12-23
  • 2021-06-20
  • 2019-09-18
  • 2022-12-23
  • 2022-01-21
猜你喜欢
  • 2022-01-18
  • 2021-11-19
  • 2021-10-14
  • 2022-01-22
  • 2021-09-29
  • 2022-12-23
相关资源
相似解决方案