Improve robustness

This commit is contained in:
Bryan Boreham committed 2014-09-30 16:02:06 +01:00
1 parent c3fdee766f
commit a09a229b44
1 file changed
+3 -3
+3 -3
View File
@@ -60,7 +60,7 @@ create_bridge() {
ip link del dev v${CONTAINER_IFNAME}du
# disable offloading
check_command_and_run ethtool ethtool -K $BRIDGE tx off >/dev/null
# Work round the situation where there are no rules allowing traffic
# Work around the situation where there are no rules allowing traffic
# across our bridge. E.g. ufw
add_iptables_rule filter FORWARD -i weave -o weave -j ACCEPT
}
@@ -71,7 +71,7 @@ destroy_bridge() {
if [ -d /sys/class/net/$BRIDGE ] ; then
ip link del dev $BRIDGE
fi
iptables -t filter -D FORWARD -i weave -o weave -j ACCEPT 2>/dev/null || true
run_iptables -t filter -D FORWARD -i weave -o weave -j ACCEPT 2>/dev/null || true
}
run_iptables() {
@@ -97,7 +97,7 @@ add_iptables_rule() {
}
add_nat_rule() {
add_iptables_rule nat $@
add_iptables_rule nat "$@"
}
setup_masquerading() {