wifidog配置 – How to configure wifidog

关于这个问题,我今天又遇到了这个问题,我就在这里记录一下

官方配置全文在这里http://dev.wifidog.org/browser/trunk/wifidog/wifidog.conf

这个其实和你的本地配置文件一模一样。配置文件中说的也已经十分清楚了。

其实网友创造晴天的博文中,关于两个端口配置是错误的。

配置主要是AuthServer和 ExternalInterface,GatewayInterface。

# This allows you to configure your auth server(s).  Each one will be tried in order, untill one responds.
61 # Set this to the hostname or IP of your auth server(s), the path where
62 # WiFiDog-auth resides in and the port it listens on.
63 #AuthServer {
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.)
74 #}
75

AuthServer主要就这样配置个Hostname和path就行了,ssl直接NO。除非你有SSL的验证器。path这里也说了,要/path/这样,后面也要斜杠。、

顺便介绍一下,往下看几篇文章,有个IOauthdog,在github,我自己弄的认证服务器2333,功能不算太复杂,如果喜欢就用吧。安装也不难。

 

创造晴天坑了我一下,他把ExternalInterface,GatewayInterface弄反了。

# Parameter: ExternalInterface
18 # Default: NONE
19 # Optional
20 #
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,
23 # Normally autodetected
24
25 # ExternalInterface eth0
26
27 # Parameter: GatewayInterface
28 # Default: NONE
29 # Mandatory
30 #
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
35

说明也很清楚了其实,

ExternalInterface的介绍是Set this to the external interface (the one going out to the Inernet or your larger LAN). 不懂英语?其实就是说这个参数叫填写going out to the Internet。就是你联网的那个设备,wan口设备。ifconfig一下就知道了。

GatewayInterface说明是 Set this to the internal interface (typically your wifi interface). 翻译大概就是设置这个成内网接口(通常就是你的wifi设备)这个其实最好还是写br-lan。因为你可以看看你的wrt的接口,所有数据都通过这个。文档也是如此推荐的。

发表评论

*

Protected with IP Blacklist CloudIP Blacklist Cloud