网上的文章很多都是配置错误的:
firewalld添加规则:
firewall-cmd --add-rich-rule='rule protocol value="vrrp" accept' --permanent
firewall-cmd --reload
配置成功。
网上防火墙另一种配置:
firewall-cmd --direct --permanent --add-rule ipv4 filter OUTPUT 0 \--out-interface ens192 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
根据网卡进行设置的,无效,不知道是不是我配置错了。
规则删除命令:
firewall-cmd --direct --permanent --remove-rule ipv4 filter OUTPUT 0 \--out-interface enp192 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
keepalived配置相关内容我就不放了,大把的配置。
因篇幅问题不能全部显示,请点此查看更多更全内容