contrib/meshwizard: Add masq=1 to freifunk zone. This usually happened in setup of the lan interface, but if lan is an olsr interface it was missing

This commit is contained in:
Manuel Munz 2011-10-27 10:29:42 +00:00
parent f6d549b20c
commit b2a8563c65

View file

@ -64,6 +64,7 @@ for i in $networks; do
# check if the dhcprange is inside meshnet
dhcpinmesh="$($dir/helpers/check-range-in-range.sh $dhcprange $meshnet)"
if [ ! "$dhcpinmesh" == 1 ]; then
uci set firewall.zone_freifunk.masq="1"
[ -z "$(echo $currms |grep ${netrenamed}dhcp)" ] && uci add_list firewall.zone_freifunk.masq_src="${netrenamed}dhcp"
fi
fi