Show
Ignore:
Timestamp:
09/25/09 18:38:13 (3 years ago)
Author:
gbastien
Message:

* Release 20090925
* Update contrib Makefiles

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/contrib/build-openwrt-whiterussianipk/wifidog/files/wifidog.conf

    r1189 r1422  
    1 # $Id: wifidog.conf 1162 2007-01-06 23:51:02Z benoitg $ 
     1# $Id: wifidog.conf 1375 2008-09-30 10:20:06Z wichert $ 
    22# WiFiDog Configuration file 
    33 
     
    77# 
    88# 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. 
    1112# If none is supplied, the mac address of the GatewayInterface interface will be used, 
    1213# without the : separators 
     
    1819# Optional 
    1920# 
    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, 
    2123# Normally autodetected 
    2224 
     
    2729# Mandatory 
    2830# 
    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 
    3035 
    3136GatewayInterface br0 
     
    3540# Optional 
    3641# 
    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. 
    3843 
    3944# 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 
    4055 
    4156# Parameter: AuthServer 
     
    4762# WiFiDog-auth resides in and the port it listens on. 
    4863#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.) 
    5474#} 
    5575 
     
    6686#} 
    6787 
    68 # Parameter: Portal 
    69 # Default: none 
    70 # Optional 
    71 # 
    72 # Set this to a URL for your portal, if you run without an auth server 
    73 # Portal http://www.ilesansfil.org/ 
    74  
    7588# Parameter: Daemon 
    7689# Default: 1 
     
    100113# How many sockets to listen to 
    101114# 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 
    102133 
    103134# Parameter: CheckInterval 
     
    144175# Used for rules to be applied to all other rulesets except locked. 
    145176FirewallRuleSet 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. 
    147189    #FirewallRule allow udp to 69.90.89.192/27 
    148190    #FirewallRule allow udp to 69.90.85.0/27 
    149191    #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 liability 
    151     #FirewallRule block tcp port 25 
    152192} 
    153193 
     
    180220# Rule Set: locked-users 
    181221# 
    182 # Used for users that have been locked out. 
     222# Not currently used 
    183223FirewallRuleSet locked-users { 
    184224    FirewallRule block to 0.0.0.0/0