[Solution] 

Update firewall policy

1)      Disabled docker rules of iptables  --- docker will create rules of iptables automatically.

# vim /etc/docker/daemon.json

 

centos docker 防火墙设置(多个ip之间互相访问)

 

 

1)      Add masquerade to public zone

# firewall-cmd --permanent --zone=public --add-masquerade

 

centos docker 防火墙设置(多个ip之间互相访问)

 

 

******# 此举启用区域的伪装功能。私有网络的地址将被隐藏并映射到一个公有IP。这是地址转换的一种形式,常用于路由。由于内核的限制,伪装功能仅可用于IPv4。

这些是我要做的修改 

 

 

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2021-12-04
  • 2022-01-06
  • 2022-02-08
  • 2022-03-11
猜你喜欢
  • 2022-12-23
  • 2021-05-08
  • 2022-02-08
  • 2022-02-08
  • 2021-06-04
相关资源
相似解决方案