Merge pull request #392 from cotequeiroz/pimbd-constant_cpu_to_be32
[feed/routing.git] / nodogsplash2 / files / nodogsplash.config
index a47579e4593c88f02b5c0bdca351b073967ee01f..2107b77c1c3d0cb84da7669a41224701a8055ea7 100644 (file)
@@ -5,6 +5,10 @@
 config nodogsplash
   # Set to 0 to disable nodogsplash
   option enabled 1
+  
+  # Set to 0 to disable hook that makes Firewall restart nodogsplash when Firewall restarts
+  # This hook is needed as a restart of Firewall overwrites nodogsplash iptables entries
+  option fwhook_enabled '1'
 
   # Serve the file splash.html from this directory
   option webroot '/etc/nodogsplash/htdocs'
@@ -12,11 +16,22 @@ config nodogsplash
   # Use plain configuration file
   #option config '/etc/nodogsplash/nodogsplash.conf'
 
-  # The network the users are connected to
-  option network 'lan'
+  # Use this option to set the network interface the users are connected to
+  # Must not be used with option gatewayinterface
+  # This option automatically identifies the active lan device for nodogsplash to bind to
+  # This option may fail if the device configured for this interface is not up when nodogsplash starts at boot time
+  # You may change this to any valid virtual lan interface that has been defined, eg lan, lan2, public_lan wlan2 etc
+  # option network 'lan'
+  
+  # Use this option to set the device nogogsplash will bind to
+  # Must not be used with option network
+  # The nodogsplash init script will wait for this device to be up before loading the nodogsplash service
+  # You may change this to any valid lan device eg br-lan, wlan0, eth0.1 etc
+  option gatewayinterface 'br-lan'
+  
   option gatewayname 'OpenWrt Nodogsplash'
   option maxclients '250'
-  #Client timeouts in minutes
+  # Client timeouts in minutes
   option clientidletimeout '120'
   option clientforcetimeout '1440'
 
@@ -33,7 +48,7 @@ config nodogsplash
   #list authenticated_users 'allow udp port 53'
   #list authenticated_users 'allow tcp port 80'
   #list authenticated_users 'allow tcp port 443'
-  #Or for happy customers allow all
+  # Or for happy customers allow all
   list authenticated_users 'allow all'
 
 
@@ -58,10 +73,10 @@ config nodogsplash
   #list allowedmac '00:00:C0:01:D0:1D'
   #list blockedmac '00:00:C0:01:D0:2D'
 
-  #MAC addresses that do not need to authenticate
+  # MAC addresses that do not need to authenticate
   #list trustedmac '00:00:C0:01:D0:1D'
 
   # Set FW_MARK for compatibilty with other OpenWrt Packages eg mwan3, sqm etc.
-  list fw_mark_authenticated '520'
-  list fw_mark_trusted '510'
-  list fw_mark_blocked '500'
+  list fw_mark_authenticated '30000'
+  list fw_mark_trusted '20000'
+  list fw_mark_blocked '10000'