Merge branch '723-check-bridge' of https://github.com/bboreham/weave into bboreham-723-check-bridge

This commit is contained in:
Matthias Radestock committed 2015-05-24 11:20:43 +01:00
commit ec59d5abee
1 file changed
+4 -1
+4 -1
View File
@@ -261,7 +261,10 @@ create_bridge() {
ip link set dev v${CONTAINER_IFNAME}du master $BRIDGE
ip link del dev v${CONTAINER_IFNAME}du
# Drop traffic from Docker bridge to Weave; it can break subnet isolation
run_iptables -t filter -I FORWARD -i $DOCKER_BRIDGE -o $BRIDGE -j DROP
if [ ! "$DOCKER_BRIDGE" = "$BRIDGE" ] ; then
# Note using -I to insert ahead of Docker's bridge rules
run_iptables -t filter -I FORWARD -i $DOCKER_BRIDGE -o $BRIDGE -j DROP
fi
# Work around the situation where there are no rules allowing traffic
# across our bridge. E.g. ufw
add_iptables_rule filter FORWARD -i $BRIDGE -o $BRIDGE -j ACCEPT