Merge branch '1.4'
This commit is contained in:
commit
1c7df2958a
1 file changed
+1
@@ -2222,6 +2222,7 @@ EOF
|
|||||||
if ! ip addr show dev $BRIDGE | grep -qF $CIDR ; then
|
if ! ip addr show dev $BRIDGE | grep -qF $CIDR ; then
|
||||||
ip addr add dev $BRIDGE $CIDR
|
ip addr add dev $BRIDGE $CIDR
|
||||||
arp_update $BRIDGE $CIDR || true
|
arp_update $BRIDGE $CIDR || true
|
||||||
|
add_iptables_rule nat WEAVE -s $CIDR -d 224.0.0.0/4 -j RETURN
|
||||||
add_iptables_rule nat WEAVE -d $CIDR ! -s $CIDR -j MASQUERADE
|
add_iptables_rule nat WEAVE -d $CIDR ! -s $CIDR -j MASQUERADE
|
||||||
add_iptables_rule nat WEAVE -s $CIDR ! -d $CIDR -j MASQUERADE
|
add_iptables_rule nat WEAVE -s $CIDR ! -d $CIDR -j MASQUERADE
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user