易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 713|回复: 1
收起左侧

Centos7 linux系统-firewalld解决keepalived的VIP问题防火墙vrrp

[复制链接]
发表于 2022-7-12 15:25:39 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT6 S; d: B9 H* n4 o  c
9 R% _& M8 f1 d5 C% W
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
3 [7 e& r2 F' P& _ firewall-cmd --reload
0 ?/ s4 |3 C% \: K firewall-cmd --direct --get-all-rules
& P1 }; c: j+ E' [' ~- \# z! o& K4 f( h' ?

+ x2 S0 L# q: ~  U, n% L& ]
: @, x9 O1 X# }- G' V  l! @
keepalived的VIP问题

% [4 u% U' @, J$ G  r' |
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens33 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
+ T* v7 l7 \; u/ e
 楼主| 发表于 2022-7-12 15:35:23 | 显示全部楼层
[root@controller1 ~]# firewall-cmd --direct --get-all-rules % ?, r, E+ E) ?$ @( U
ipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT' |% ?# z$ s5 {4 N) C  G
ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
7 ^( D) ?3 u( R' N. I" V+ a, t[root@controller1 ~]# / U# S% v2 b+ n7 ?
/ k1 H% e; P/ m6 Q2 ^
vim /etc/firewalld/direct.xml
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-9 00:04 , Processed in 0.049149 second(s), 23 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表