From: Manuel Munz Date: Thu, 27 Oct 2011 10:29:42 +0000 (+0000) Subject: contrib/meshwizard: Add masq=1 to freifunk zone. This usually happened in setup of... X-Git-Tag: 0.11.0~1462 X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=b2a8563c650742b0ad222f9476c34a3370192998;p=project%2Fluci.git 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 --- diff --git a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall_interface.sh b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall_interface.sh index 83b41d0a01..896329be60 100755 --- a/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall_interface.sh +++ b/contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall_interface.sh @@ -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