nodogsplash: code cleanup, add option gatewayinterface, allow uci and manual configra...
[lede-routing/.git] / nodogsplash / files / nodogsplash.config
1 config instance
2   # Set to 1 to enable nodogsplash
3   option enabled 0
4
5   # Use plain configuration file as well
6   #option config '/etc/nodogsplash/nodogsplash.conf'
7   option network 'lan'
8   option gatewayname 'OpenWrt Nodogsplash'
9   option maxclients '250'
10   option idletimeout '1200'
11
12   # Your router may have several interfaces, and you
13   # probably want to keep them private from the network/gatewayinterface.
14   # If so, you should block the entire subnets on those interfaces, e.g.:
15   list authenticated_users 'block to 192.168.0.0/16'
16   list authenticated_users 'block to 10.0.0.0/8'
17
18   # Typical ports you will probably want to open up.
19   list authenticated_users 'allow tcp port 22'
20   list authenticated_users 'allow tcp port 53'
21   list authenticated_users 'allow udp port 53'
22   list authenticated_users 'allow tcp port 80'
23   list authenticated_users 'allow tcp port 443'
24
25   # For preauthenticated users to resolve IP addresses in their
26   # initial request not using the router itself as a DNS server,
27   list preauthenticated_users 'allow tcp port 53'
28   list preauthenticated_users 'allow udp port 53'
29
30   # Allow ports for SSH/Telnet/DNS/DHCP/HTTP/HTTPS
31   list users_to_router 'allow tcp port 22'
32   list users_to_router 'allow tcp port 23'
33   list users_to_router 'allow tcp port 53'
34   list users_to_router 'allow udp port 53'
35   list users_to_router 'allow udp port 67'
36   list users_to_router 'allow tcp port 80'
37   list users_to_router 'allow tcp port 443'
38
39   # See https://github.com/nodogsplash for a full list of available options.