找回密码
 注册
查看: 721|回复: 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
' A8 m5 s7 d: W3 [2 v, _. F% B, ]! I" O/ R
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT7 b5 J9 T4 y+ p  l3 V
firewall-cmd --reload 6 Z4 p7 A" ^- E9 ]$ z/ O
firewall-cmd --direct --get-all-rules% C0 @- Y9 E- y/ _2 b$ W

9 J9 T) C; ?$ [9 A0 a9 L
0 I5 _( k, }  F; e4 S
7 l1 E0 y0 j# W. K; x. A5 G
keepalived的VIP问题

) A& {# z8 Y3 f) L( H8 `- {7 H
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens33 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
% N; l  e$ R. E7 Q

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-7-12 15:35:23 | 显示全部楼层
[root@controller1 ~]# firewall-cmd --direct --get-all-rules
( Z8 ~' U9 n0 T& mipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT* P% U! K) e$ c5 ?
ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
+ g- z* L6 \2 ?) ^6 B[root@controller1 ~]# ) C8 L7 a  y- e* `5 M
% b. ^: p7 S5 G9 O8 {
vim /etc/firewalld/direct.xml
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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