- Timestamp:
- 09/25/09 18:38:13 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog/contrib/build-openwrt-whiterussianipk/wifidog/files/wifidog.conf
r1189 r1422 1 # $Id: wifidog.conf 1 162 2007-01-06 23:51:02Z benoitg$1 # $Id: wifidog.conf 1375 2008-09-30 10:20:06Z wichert $ 2 2 # WiFiDog Configuration file 3 3 … … 7 7 # 8 8 # Set this to the node ID on the auth server 9 # this is used to give a customized login page to the clients and for 10 # monitoring/statistics purpose 9 # This is used to give a customized login page to the clients and for 10 # monitoring/statistics purpose. If you run multiple gateways on the same 11 # machine each gateway needs to have a different gateway id. 11 12 # If none is supplied, the mac address of the GatewayInterface interface will be used, 12 13 # without the : separators … … 18 19 # Optional 19 20 # 20 # Set this to the external interface. Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise, 21 # Set this to the external interface (the one going out to the Inernet or your larger LAN). 22 # Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise, 21 23 # Normally autodetected 22 24 … … 27 29 # Mandatory 28 30 # 29 # Set this to the internal interface. Typically br0 for OpenWrt, and eth1 otherwise 31 # Set this to the internal interface (typically your wifi interface). 32 # Typically br0 for whiterussian, br-lan for kamikaze (by default the wifi interface is bridged with wired lan in openwrt) 33 # and eth1, wlan0, ath0, etc. otherwise 34 # You can get this interface with the ifconfig command and finding your wifi interface 30 35 31 36 GatewayInterface br0 … … 35 40 # Optional 36 41 # 37 # Set this to the internal IP address of the gateway 42 # Set this to the internal IP address of the gateway. Not normally required. 38 43 39 44 # GatewayAddress 192.168.1.1 45 46 # Parameter: HtmlMessageFile 47 # Default: wifidog-msg.html 48 # Optional 49 # 50 # This allows you to specify a custome HTML file which will be used for 51 # system errors by the gateway. Any $title, $message and $node variables 52 # used inside the file will be replaced. 53 # 54 # HtmlMessageFile /opt/wifidog/etc/wifidog-.html 40 55 41 56 # Parameter: AuthServer … … 47 62 # WiFiDog-auth resides in and the port it listens on. 48 63 #AuthServer { 49 # Hostname (Mandatory; Default: NONE) 50 # SSLAvailable (Optional; Default: no; Possible values: yes, no) 51 # SSLPort 443 (Optional; Default: 443) 52 # HTTPPort 80 (Optional; Default: 80) 53 # Path wifidog/ (Optional; Default: /wifidog/ Note: The path must be both prefixed and suffixed by /. Use a single / for server root.) 64 # Hostname (Mandatory; Default: NONE) 65 # SSLAvailable (Optional; Default: no; Possible values: yes, no) 66 # SSLPort (Optional; Default: 443) 67 # HTTPPort (Optional; Default: 80) 68 # Path (Optional; Default: /wifidog/ Note: The path must be both prefixed and suffixed by /. Use a single / for server root.) 69 # LoginScriptPathFragment (Optional; Default: login/? Note: This is the script the user will be sent to for login.) 70 # PortalScriptPathFragment (Optional; Default: portal/? Note: This is the script the user will be sent to after a successfull login.) 71 # MsgScriptPathFragment (Optional; Default: gw_message.php? Note: This is the script the user will be sent to upon error to read a readable message.) 72 # PingScriptPathFragment (Optional; Default: ping/? Note: This is the script the user will be sent to upon error to read a readable message.) 73 # AuthScriptPathFragment (Optional; Default: auth/? Note: This is the script the user will be sent to upon error to read a readable message.) 54 74 #} 55 75 … … 66 86 #} 67 87 68 # Parameter: Portal69 # Default: none70 # Optional71 #72 # Set this to a URL for your portal, if you run without an auth server73 # Portal http://www.ilesansfil.org/74 75 88 # Parameter: Daemon 76 89 # Default: 1 … … 100 113 # How many sockets to listen to 101 114 # HTTPDMaxConn 10 115 116 # Parameter: HTTPDRealm 117 # Default: WiFiDog 118 # Optional 119 # 120 # The name of the HTTP authentication realm. This only used when a user 121 # tries to access a protected WiFiDog internal page. See HTTPUserName. 122 # HTTPDRealm WiFiDog 123 124 # Parameter: HTTPDUserName / HTTPDPassword 125 # Default: unset 126 # Optional 127 # 128 # The gateway exposes some information such as the status page through its web 129 # interface. This information can be protected with a username and password, 130 # which can be set through the HTTPDUserName and HTTPDPassword parameters. 131 # HTTPDUserName admin 132 # HTTPDPassword secret 102 133 103 134 # Parameter: CheckInterval … … 144 175 # Used for rules to be applied to all other rulesets except locked. 145 176 FirewallRuleSet global { 146 # This is the default config for the Teliphone service. 177 ## To block SMTP out, as it's a tech support nightmare, and a legal liability 178 #FirewallRule block tcp port 25 179 180 ## Use the following if you don't want clients to be able to access machines on 181 ## the private LAN that gives internet access to wifidog. Note that this is not 182 ## client isolation; The laptops will still be able to talk to one another, as 183 ## well as to any machine bridged to the wifi of the router. 184 # FirewallRule block to 192.168.0.0/16 185 # FirewallRule block to 172.16.0.0/12 186 # FirewallRule block to 10.0.0.0/8 187 188 ## This is an example ruleset for the Teliphone service. 147 189 #FirewallRule allow udp to 69.90.89.192/27 148 190 #FirewallRule allow udp to 69.90.85.0/27 149 191 #FirewallRule allow tcp port 80 to 69.90.89.205 150 # To block SMTP out, as it's a tech support nightmare, and a legal liability151 #FirewallRule block tcp port 25152 192 } 153 193 … … 180 220 # Rule Set: locked-users 181 221 # 182 # Used for users that have been locked out.222 # Not currently used 183 223 FirewallRuleSet locked-users { 184 224 FirewallRule block to 0.0.0.0/0
