Skip to content

Commit 2276a39

Browse files
sudisonAnthony Xu
authored andcommitted
KVM security bug: no forwarding rule applied
(cherry picked from commit e5c391f) Signed-off-by: Animesh Chaturvedi <animesh@apache.org>
1 parent e656201 commit 2276a39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎scripts/vm/network/security_group.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ def addFWFramework(brname):
978978
execute("iptables -N " + brfwin)
979979

980980
try:
981-
refs = execute("""iptables -n -L " + brfw + " | awk '/%s(.*)references/ {gsub(/\(/, "") ;print $3}'""" % brfw).strip()
981+
refs = execute("""iptables -n -L %s | awk '/%s(.*)references/ {gsub(/\(/, "") ;print $3}'""" % (brfw,brfw)).strip()
982982
if refs == "0":
983983
execute("iptables -I FORWARD -i " + brname + " -j DROP")
984984
execute("iptables -I FORWARD -o " + brname + " -j DROP")

0 commit comments

Comments
 (0)