找回密码
 注册
查看: 722|回复: 1

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2022-7-12 15:25:39 | 显示全部楼层 |阅读模式
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
6 R  z' F& B% w6 J0 E' T' F- l7 U1 }+ \5 q' N+ _" o
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
* O  u# ~- e2 ~% i1 n firewall-cmd --reload
2 S+ ^" J. P% q$ v) z  ?1 x/ _) S9 a firewall-cmd --direct --get-all-rules
" g3 U. }7 x' Z+ Y0 z
7 I0 F2 z% D. e9 T" ?7 P" }* U# e8 N, J) r) l# Q8 `& |* d% x

- U: K$ [8 s1 L7 @7 ]* ]
keepalived的VIP问题
$ F7 s; h/ d. O" L2 G$ l  m8 b  P* |
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens33 --destination 224.0.0.18 --protocol vrrp -j ACCEPT

+ g1 f( S% h4 k8 @" {

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-7-12 15:35:23 | 显示全部楼层
[root@controller1 ~]# firewall-cmd --direct --get-all-rules
. ^3 J# z/ l4 bipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
' ~' L7 T8 |! b# D( r, w6 L* m, Fipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
7 O& {4 S" K' u, n5 s[root@controller1 ~]# 4 f6 w: e( S5 A

# _- q& e. B7 R+ T" r+ g vim /etc/firewalld/direct.xml
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 03:04 , Processed in 0.022302 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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