杂项

 

Historically, Open vSwitch (OVS) could not interact directly with iptables to implement security groups. Thus, the OVS agent and Compute service use a Linux bridge between each instance (VM) and the OVS integration bridge br-int to implement security groups. The Linux bridge device contains the iptables rules pertaining to the instance. In general, additional components between instances and physical network infrastructure cause scalability and performance problems. To alleviate such problems, the OVS agent includes an optional firewall driver that natively implements security groups as flows in OVS rather than the Linux bridge device and iptables. This increases scalability and performance.

 

modprobe ifb
tc qdisc add dev bond0 handle ffff: ingress
ip link set dev ifb0 up
tc filter add dev bond0 parent ffff: protocol ip u32 match ip src X.X.X.X action mirred egress redirect dev ifb0
tc qdisc add dev ifb0 root handle 1: htb default 20
tc class add dev ifb0 parent 1:1 classid 1:30 htb rate 400mbit
tc filter add dev ifb0 protocol ip parent 1:0 prio 1 u32 match ip src X.X.X.X flowid 1:30




tc qdisc add dev bond0 root handle 1: htb default 20
tc class add dev bond0 parent 1:1 classid 1:35 htb rate 2gbit
tc filter add dev bond0 protocol ip parent 1:0 prio 1 u32 match ip dst X.X.X.X flowid 1:35

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值