Centos7-keepalived配置防火墙:症状:主备份节点同时绑定VIP时无法切换。 查看防火墙d的状态:查看防火墙d的状态
系统状态防火墙d启动防火墙d
关闭systemctlstartfirewalldfirewall
如何配置系统停止防火墙d :配置前必须启动防火墙服务
系统开始防火墙d使用防火墙配置
firewall-cmd-- add-rich-rule=' ruleprotocolvalue=' vrrp ' accept '-- permanent firewall-cmd-- reload是可兼容的
iptables-I输入- p vrrp-jacceptiptables-save/etc/sys config/iptablessystemctlrestartiptables参考文档https://acess
firewallrequirementsifyouarerunningafirewall (bymeansoffirewalldoriptables )、 youmustallowvrrptraffictopassbetweenthekeepalivednodes.toconfigurethefirewalltoallowthevrrptrafficwithfirewalld, runthefollowingcommands 3360 #防火墙- cmd-- add-rich-rule=' ruleprotocolvalue=' vrrp ' accept '-permanent # firewall-cmd---- reloadifthezoneisomittedthedefaultzonewillbeused.if,however, youneedtoallowthevrrptrafficwithiptables runthefollowingcommands 3360 # iptables-I输入- p vrrp-j接受# iptables-save /