找回密码
 注册
查看: 719|回复: 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
5 p% I( G1 [+ f5 a% ]4 m
9 M* ?" [0 s* Q. h0 ^8 \& E2 Y7 [+ Mfirewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT( ^" w* ~; W8 y0 g: H( G
firewall-cmd --reload
, h. L+ ^( J) a8 J1 E3 E* U firewall-cmd --direct --get-all-rules
( s) n# z- E2 y: N. j
! H) y9 B1 Z1 c+ `, L9 l  O$ h
( G; L' n: J6 z7 r/ E: w
6 @& W( m6 B7 g9 \
keepalived的VIP问题
1 D. F7 }, B5 r# m
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface ens33 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
1 h4 D" H+ M" B- V. j% A" s- R0 }" J

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2022-7-12 15:35:23 | 显示全部楼层
[root@controller1 ~]# firewall-cmd --direct --get-all-rules
- W+ Y; Q$ \1 T5 a6 R2 v( S3 fipv4 filter INPUT 0 --in-interface em1 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
: C; K# ~5 z% J: ^ipv4 filter INPUT 0 --in-interface ens3 --destination 224.0.0.18 --protocol vrrp -j ACCEPT1 ~5 p+ l# J3 X! s, f* a
[root@controller1 ~]# 6 I& ]. S& Y4 ^( U, v, _& [6 y( |
. o! a8 f# W7 s. |5 O  v' u# o
vim /etc/firewalld/direct.xml
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-12 01:56 , Processed in 0.021994 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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