From 349f0cea778e497a26b228355d39821a2d342401 Mon Sep 17 00:00:00 2001 From: Jaime Melis Date: Tue, 4 Nov 2014 14:31:47 +0100 Subject: [PATCH] Feature #3175: use proper vnet --- src/vnm_mad/remotes/security_groups/SecurityGroups.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vnm_mad/remotes/security_groups/SecurityGroups.rb b/src/vnm_mad/remotes/security_groups/SecurityGroups.rb index 5fd38800a6..232927b07e 100644 --- a/src/vnm_mad/remotes/security_groups/SecurityGroups.rb +++ b/src/vnm_mad/remotes/security_groups/SecurityGroups.rb @@ -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")