File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -726,7 +726,7 @@ def addFWFramework(brname):
726726 execute ("iptables -I FORWARD -o " + brname + " -j DROP" )
727727 execute ("iptables -I FORWARD -i " + brname + " -m physdev --physdev-is-bridged -j " + brfw )
728728 execute ("iptables -I FORWARD -o " + brname + " -m physdev --physdev-is-bridged -j " + brfw )
729- phydev = execute ("brctl show |grep " + brname + " | awk '{print $4}'" ).strip ()
729+ phydev = execute ("brctl show |grep -w " + brname + " | awk '{print $4}'" ).strip ()
730730 execute ("iptables -A " + brfw + " -m state --state RELATED,ESTABLISHED -j ACCEPT" )
731731 execute ("iptables -A " + brfw + " -m physdev --physdev-is-bridged --physdev-is-in -j " + brfwin )
732732 execute ("iptables -A " + brfw + " -m physdev --physdev-is-bridged --physdev-is-out -j " + brfwout )
You can’t perform that action at this time.
0 commit comments