contrib/meshwizard: Add masq=1 to freifunk zone. This usually happened in setup of...
authorManuel Munz <freifunk@somakoma.de>
Thu, 27 Oct 2011 10:29:42 +0000 (10:29 +0000)
committerManuel Munz <freifunk@somakoma.de>
Thu, 27 Oct 2011 10:29:42 +0000 (10:29 +0000)
contrib/package/meshwizard/files/usr/bin/meshwizard/helpers/setup_firewall_interface.sh

index 83b41d0a01c11ad3975a6dc5a15ec81c31f04b64..896329be6041d1d740b51ce9ce9c08ceeb9515eb 100755 (executable)
@@ -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