centos 6下面修改防火墙
vi /etc/sysconfig/iptables 增加这个
-A INPUT -p 112 -d 224.0.0.0/32 -j ACCEPT #-p 112指定协议为112,也可-p vrrp即vrrp,keepalived组播地址是224.0.0.18

centos7下面改防火墙
firewall-cmd --direct --permanent --add-rule ipv4 filter INPUT 0 --in-interface enp4s0 --destination 224.0.0.18 --protocol vrrp -j ACCEPT
firewall-cmd --reload

suse下面修改防火墙
vi /etc/sysconfig/SuSEfirewall2
将下面这行的注释去掉
FW_CUSTOMRULES="/etc/sysconfig/scripts/SuSEfirewall2-custom"
并将下面这行注释掉
FW_CUSTOMRULES=""

然后
vi /etc/sysconfig/scripts/SuSEfirewall2-custom

fw_custom_before_port_handling() {

# these rules will be loaded after the anti-spoofing and icmp handling
# and after the input has been redirected to the input_XXX and
# forward_XXX chains and some basic chain-specific anti-circumvention
# rules have been set,
# but before any IP protocol or TCP/UDP port allow/protection rules
# will be set.
# You can use this hook to allow/deny certain IP protocols or TCP/UDP
# ports before the SuSEfirewall2 generated rules are hit.

#添加下面这行
iptables -A INPUT -p vrrp -j ACCEPT -d 224.0.0.18
true
}

http://www.kikikoo.com/uid-20794884-id-5704461.html

谢谢谷歌,谢谢上面这位大神~

参考: https://docs.oracle.com/cd/E37670_01/E41138/html/section_ksr_psb_nr.html

最新文章

  1. css flex布局
  2. mysql 查询数据库表结构
  3. Oracle日期语言修改
  4. 正在使用MJRefresh & MJExtension的App
  5. 【UVA 1586】Ancient Cipher
  6. 手机开机画面制作工具(LogoBuilder)
  7. python一些技巧
  8. win7 vs2010 安装cocos2d-x
  9. 64位平台C/C++开发注意事项(转载)
  10. 【转】mysql函数
  11. Swift 学习笔记 (三) 之循环引用浅析
  12. Python【第二课】 字符串,列表,字典,集合,文件操作
  13. 在vue项目中引入jquery
  14. 使用 git clone 的时候出现 fatal: Unable to find remote helper for 'https' 解决办法
  15. 读《SQL优化核心思想》:你不知道的优化技巧
  16. net.sf.json.JSONException: 'object' is an array. Use JSONArray instead
  17. python with 语句妙用
  18. jdbc一次性采集mysql和oracle的海量数据,5000W+为例
  19. BeanUtils简化数据封装
  20. 如何用手机访问电脑上的html文件

热门文章

  1. 构建RESTful API(十八)
  2. angular4,angular6 父组件异步获取数据传值子组件 undefined 问题
  3. latex 公式距离
  4. 服务消费和负载(Feign)
  5. [javamail]AUTH LOGIN failed;Invalid username or password报错
  6. Python Django 之 直接执行自定义SQL语句(二)
  7. CSS特性
  8. aspnet core 2.0 发布之后没有 views文件夹
  9. 7.2 C++模板类实例化
  10. 在MATLAB中安装MinGW-w64 C/C++ 编译器的方法