wifidog配置分析

AuthServer {

Hostname? ? ? ? ? ? ? ? ? (Mandatory; Default: NONE)

SSLAvailable? ? ? ? ? ? ? (Optional; Default: no; Possible values: yes, no)

SSLPort? ? ? ? ? ? ? ? ? (Optional; Default: 443)

HTTPPort? ? ? ? ? ? ? ? ? (Optional; Default: 80)

Path? ? ? ? ? ? ? ? ? ? ? (Optional; Default: /wifidog/ Note:? The path must be both prefixed and suffixed by /.? Use a single / for server root.)

LoginScriptPathFragment? (Optional; Default: login/? Note:? This is the script the user will be sent to for login.)

PortalScriptPathFragment? (Optional; Default: portal/? Note:? This is the script the user will be sent to after a successfull login.)

MsgScriptPathFragment? ? (Optional; Default: gw_message.php? Note:? This is the script the user will be sent to upon error to read a readable message.)

PingScriptPathFragment? ? (Optional; Default: ping/? Note:? This is the script the user will be sent to upon error to read a readable message.)

AuthScriptPathFragment? ? (Optional; Default: auth/? Note:? This is the script the user will be sent to upon error to read a readable message.)

}

# Listen on this port

GatewayPort 2060

# Parameter: CheckInterval

# Default: 60

# Optional

#

# How many seconds should we wait between timeout checks.? This is also

# how often the gateway will ping the auth server and how often it will

# update the traffic counters on the auth server.? Setting this too low

# wastes bandwidth, setting this too high will cause the gateway to take

# a long time to switch to it's backup auth server(s).

CheckInterval 60

# Parameter: ClientTimeout

# Default: 5

# Optional

#

# Set this to the desired of number of CheckInterval of inactivity before a client is logged out

# The timeout will be INTERVAL * TIMEOUT

ClientTimeout 5

AuthServer是Portal服務器的配置項;GatewayPort是Wifidog監聽的地址,默認是2060,一般保持默認即可;CheckInterval是心跳時長,單位是秒,什么是心跳呢,客戶端認證成功之后,如果有網絡訪問動作,Wifidog getway就會每隔一段時間訪問Portal服務器的一個腳本,用于認證計費,當然,如果客戶使用超時或超流量,也可以通過心跳強制客戶端下線。ClientTimeout是用戶一次認證成功后的網絡訪問時長,超過這個時間需要重新認證,這個時長并非由ClientTimeout單獨決定,取決于INTERVAL * TIMEOUT。詳細的配置信息可以訪問:http://dev.wifidog.org/browser/trunk/wifidog/wifidog.conf

重點討論Portal服務器的配置項,Hostname是Portal服務器的ip或者是域名,SSLAvailable和SSLPort是SSL加密配置,如果你的Portal服務器有配置HTTPS加密,則需要配置這兩項;Path是指你的腳本路徑(舉例,http://a.com/to/,則a.com是域名,/to/是路徑),注意路徑必須以“/”開頭和結尾,如果是根路徑,則填一個“/”即可;接下來的5個配置指明你的腳本名,這說明了我們需要寫五個腳本,我會詳細說明。(以下文中涉及的“第幾步”均是指Wifidog認證過程的步驟)

LoginScriptPathFragment配置項配置的是登陸腳本,它通過GET方式接受傳入參數gw_address、gw_port、gw_id、mac和url,gw_address是AP Getway的ip地址;gw_port是Wifidog監聽的端口,即上面介紹的wifidog.conf中的GatewayPort配置;gw_id是AP Getway的id,配置文件wifidog.conf中可以配置,默認值是default,這個值的作用是當存在


......本站只呈現部分內容,查看完整文章請到WiFiDog官網社區http://www.wifidog.pro/2015/04/03/wifidog%E9%85%8D%E7%BD%AE%E5%88%86%E6%9E%90-1.html ,轉載請注明出處

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容