1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Feature #3175: use proper vnet

This commit is contained in:
Jaime Melis 2014-11-04 14:31:47 +01:00
parent c512885b78
commit 349f0cea77

View File

@ -507,8 +507,8 @@ class OpenNebulaSG < OpenNebulaNetwork
commands.iptables("-N #{chain_out}") # outbound
# Send traffic to the NIC chains
commands.iptables("-A FORWARD -m physdev --physdev-out vnet0 --physdev-is-bridged -j #{chain_in}")
commands.iptables("-A FORWARD -m physdev --physdev-in vnet0 --physdev-is-bridged -j #{chain_out}")
commands.iptables("-A FORWARD -m physdev --physdev-out #{nic[:tap]} --physdev-is-bridged -j #{chain_in}")
commands.iptables("-A FORWARD -m physdev --physdev-in #{nic[:tap]} --physdev-is-bridged -j #{chain_out}")
# Related, Established
commands.iptables("-A #{chain_in} -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT")