diff --git a/files/usr/local/bin/node-setup b/files/usr/local/bin/node-setup index 98d9cf2c..a8214fc2 100755 --- a/files/usr/local/bin/node-setup +++ b/files/usr/local/bin/node-setup @@ -503,13 +503,18 @@ if(wifi_useschains()){ $cmd .= "uci set wireless.\@wifi-device[0].rxantenna=$cfg{wifi_rxant} >/dev/null 2>&1;"; $cmd .= "uci set wireless.\@wifi-device[0].txantenna=$cfg{wifi_txant} >/dev/null 2>&1;"; } + +# Setup node lan dhcp +if ( $cfg{lan_dhcp_noroute} ) { + $cmd .= "uci add_list dhcp.\@dhcp[0].dhcp_option=3 >/dev/null 2>&1;" +} + +# finish up + $cmd .= "uci -q commit;"; system $cmd; - -# finish up - unless($auto) { print "configuration complete.\n"; diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 2fecadb1..06c14ea4 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -682,6 +682,15 @@ if($dmz_mode) print "DHCP End"; #print "\n"; print "$dmz_dhcp_end\n"; + + print "
"; + print "Advanced"; + + print "Disable
Default Route"; + print "\n"; + push @hidden, ""; push @hidden, ""; diff --git a/files/www/help.html b/files/www/help.html index 0eb5b0de..cd364b63 100644 --- a/files/www/help.html +++ b/files/www/help.html @@ -297,6 +297,18 @@ The LAN box allows you to set the LAN IP Address of the node and the address range of the DHCP server, and these should be self explanatory. The LAN Mode is described in the next section. +

+The Disable Default Route checkbox will cause the node to not +advertise that it should be chosen as the default route. This means that +computers plugged into the node will not try and route to the internet or +other networks via the mesh node and will only try and use the mesh node for +the 10.0.0.0/8 and 172.16.0.0/12 "mesh" network ranges. You will not be able +to access the internet, even if your node has internet available on its wan +port with this setting checked. This also applies to internet available over +the mesh. Use this only if you know what a default route is and you need to +be connected to two networks at once such as wired to the mesh, and WiFi to +a local served agency network. +