新建虚拟机的安全组规则分析--iptables

开启安全组功能并新建虚拟机,在VM的host上,Iptables的Filter表的INPUT链以及FORWARD将增加一些默认的规则:

注:在该规则下,虚拟机内部是ping不通默认网关的,下一篇文章将分析具体的原因。

*filter

:INPUT ACCEPT [390091:77291625]

-A INPUT -j neutron-openvswi-INPUT

:INPUT ACCEPT [390091:77291625]

:neutron-openvswi-INPUT - [0:0]

-A neutron-openvswi-INPUT -m physdev --physdev-in tap93cb6698-b1 --physdev-is-bridged -j neutron-openvswi-o93cb6698-b 

## 网桥接收到数据包,数据包是从 tap93cb6698-b1 这个网桥端口收到的,并且这个包是桥接过来的,未被路由过,则转到 neutron-openvswi-o93cb6698-b 链 

## 实际上,对于INPUT链, --physdev-is-bridged 这个条件是无效的,那为何还需要加上这个条件?   

## 说明:

physdev

This module matches on the bridge port input and output devices enslaved to a bridge device. 

This module is a part of the infrastructure that enables a transparent bridging IP firewall and is 

only useful for kernel versions above version 2.5.44.


[!] --physdev-is-bridged

Matches if the packet is being bridged and therefore is not being routed. This is only useful in theFORWARD and POSTROUTINGchains.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值