From f4a5012dc7dd96381eab87811a69da6e8e93e4e4 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 30 Sep 2014 16:11:29 +0100 Subject: [PATCH] refactor: keep bridge name abstract --- weaver/weave | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weaver/weave b/weaver/weave index d50ee277..26423cb2 100755 --- a/weaver/weave +++ b/weaver/weave @@ -88,7 +88,7 @@ create_bridge() { check_command_and_run ethtool ethtool -K $BRIDGE tx off >/dev/null # 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 + add_iptables_rule filter FORWARD -i $BRIDGE -o $BRIDGE -j ACCEPT } ip link set dev $BRIDGE up } @@ -97,7 +97,7 @@ destroy_bridge() { if [ -d /sys/class/net/$BRIDGE ] ; then ip link del dev $BRIDGE fi - run_iptables -t filter -D FORWARD -i weave -o weave -j ACCEPT 2>/dev/null || true + run_iptables -t filter -D FORWARD -i $BRIDGE -o $BRIDGE -j ACCEPT 2>/dev/null || true } setup_masquerading() {