centos8的firewalld防火墙底层使用了全新的nftables替代了iptables。部分软件会存在兼容性问题。
在配置keepalived+nginx双机主备时,发现如果不手动reload防火墙,虚拟ip无法正常ping通,重启后,对该ip的端口访问也会被防火墙拦截。
此时可尝试修改/etc/firewalld/firewalld.conf将nftables改为iptables来使用老的防火墙模式。
此外keepalived要求防火墙放行vrrp协议

firewall-cmd --add-protocol=vrrp --permanent
firewall-cmd --reload

相关文章:

  • 2021-07-16
  • 2022-12-23
  • 2022-01-03
  • 2021-08-05
  • 2022-01-03
  • 2022-02-08
  • 2022-02-08
  • 2021-06-04
猜你喜欢
  • 2022-03-09
  • 2021-12-11
  • 2022-02-19
  • 2021-06-05
  • 2021-07-25
  • 2022-02-17
  • 2021-11-26
相关资源
相似解决方案