ubnt解决方案
查看: 4217|回复: 9

请问如何使用wifidog.conf文件和协成配置呢?

[复制链接]

323

回帖

1926

积分

369 小时

在线时间

上尉

注册时间
2012-3-20
金币
1545 个
威望
2 个
荣誉
0 个
累计签到:44 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-9-19 10:02 |显示全部楼层
请问如何使用wifidog.conf文件和协成配置呢?
# $Id: wifidog.conf 1375 2008-09-30 10:20:06Z wichert $
# WiFiDog Configuration file

# Parameter: GatewayID
# Default: default
# Optional
#
# Set this to the node ID on the auth server
# This is used to give a customized login page to the clients and for
# monitoring/statistics purpose. If you run multiple gateways on the same
# machine each gateway needs to have a different gateway id.
# If none is supplied, the mac address of the GatewayInterface interface will be used,
# without the : separators

# GatewayID default

# Parameter: ExternalInterface
# Default: NONE
# Optional
#
# Set this to the external interface (the one going out to the Inernet or your larger LAN).  
# Typically vlan1 for OpenWrt, and eth0 or ppp0 otherwise,
# Normally autodetected

# ExternalInterface eth0

# Parameter: GatewayInterface
# Default: NONE
# Mandatory
#
# Set this to the internal interface (typically your wifi interface).   
# Typically br0 for whiterussian, br-lan for kamikaze (by default the wifi interface is bridged with wired lan in openwrt)
# and eth1, wlan0, ath0, etc. otherwise
# You can get this interface with the ifconfig command and finding your wifi interface

GatewayInterface eth0

# Parameter: GatewayAddress
# Default: Find it from GatewayInterface
# Optional
#
# Set this to the internal IP address of the gateway.  Not normally required.

# GatewayAddress 192.168.1.1

# Parameter: HtmlMessageFile
# Default: wifidog-msg.html
# Optional
#
# This allows you to specify a custome HTML file which will be used for
# system errors by the gateway. Any $title, $message and $node variables
# used inside the file will be replaced.
#
# HtmlMessageFile /opt/wifidog/etc/wifidog-.html

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

#AuthServer {
#    Hostname auth.ilesansfil.org
#    SSLAvailable yes
#    Path /
#}

#AuthServer {
#    Hostname auth2.ilesansfil.org
#    SSLAvailable yes
#    Path /
#}

# Parameter: Daemon
# Default: 1
# Optional
#
# Set this to true if you want to run as a daemon
# Daemon 1

# Parameter: GatewayPort
# Default: 2060
# Optional
#
# Listen on this port
# GatewayPort 2060

# Parameter: HTTPDName
# Default: WiFiDog
# Optional
#
# Define what name the HTTPD server will respond
# HTTPDName WiFiDog

# Parameter: HTTPDMaxConn
# Default: 10
# Optional
#
# How many sockets to listen to
# HTTPDMaxConn 10

# Parameter: HTTPDRealm
# Default: WiFiDog
# Optional
#
# The name of the HTTP authentication realm. This only used when a user
# tries to access a protected WiFiDog internal page. See HTTPUserName.
# HTTPDRealm WiFiDog

# Parameter: HTTPDUserName / HTTPDPassword
# Default: unset
# Optional
#
# The gateway exposes some information such as the status page through its web
# interface. This information can be protected with a username and password,
# which can be set through the HTTPDUserName and HTTPDPassword parameters.
# HTTPDUserName admin
# HTTPDPassword secret

# 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

# Parameter: TrustedMACList
# Default: none
# Optional
#
# Comma separated list of MAC addresses who are allowed to pass
# through without authentication
#TrustedMACList 00:00E:AD:BE:AF,00:00:C0:1D:F0:0D

# Parameter: FirewallRuleSet
# Default: none
# Mandatory
#
# Groups a number of FirewallRule statements together.

# Parameter: FirewallRule
# Default: none
#
# Define one firewall rule in a rule set.

# Rule Set: global
#
# Used for rules to be applied to all other rulesets except locked.
FirewallRuleSet global {
    ## To block SMTP out, as it's a tech support nightmare, and a legal liability
    #FirewallRule block tcp port 25

    ## Use the following if you don't want clients to be able to access machines on
    ## the private LAN that gives internet access to wifidog.  Note that this is not
    ## client isolation;  The laptops will still be able to talk to one another, as
    ## well as to any machine bridged to the wifi of the router.
    # FirewallRule block to 192.168.0.0/16
    # FirewallRule block to 172.16.0.0/12
    # FirewallRule block to 10.0.0.0/8

    ## This is an example ruleset for the Teliphone service.
    #FirewallRule allow udp to 69.90.89.192/27
    #FirewallRule allow udp to 69.90.85.0/27
    #FirewallRule allow tcp port 80 to 69.90.89.205
}

# Rule Set: validating-users
#
# Used for new users validating their account
FirewallRuleSet validating-users {
    FirewallRule allow to 0.0.0.0/0
}

# Rule Set: known-users
#
# Used for normal validated users.
FirewallRuleSet known-users {
    FirewallRule allow to 0.0.0.0/0
}

# Rule Set: auth-is-down
#
# Used when auth server is down
FirewallRuleSet auth-is-down {
#  FirewallRule allow to 0.0.0.0/0
}

# Rule Set: unknown-users
#
# Used for unvalidated users, this is the ruleset that gets redirected.
#
# XXX The redirect code adds the Default DROP clause.
FirewallRuleSet unknown-users {
    FirewallRule allow udp port 53
    FirewallRule allow tcp port 53
    FirewallRule allow udp port 67
    FirewallRule allow tcp port 67
}

# Rule Set: locked-users
#
# Not currently used
FirewallRuleSet locked-users {
    FirewallRule block to 0.0.0.0/0
}


286

回帖

6918

积分

3351 小时

在线时间

中校

注册时间
2011-4-4
金币
6257 个
威望
2 个
荣誉
0 个
累计签到:674 天
连续签到:0 天
[LV.730]常住居民
发表于 2014-9-19 11:22 |显示全部楼层
# GatewayID default
GatewayID 你的mac地址去掉冒号
# Listen on this port
GatewayPort 2060
# Parameter: HTTPDName
Default:这个对应你web里面设置的名字啊如ni360
# Optional


# Parameter: GatewayAddress
# Default: Find it from GatewayInterface
# Optional
#
# Set this to the internal IP address of the gateway.  Not normally required.

GatewayAddress wifi.612459.com



去掉#号肯定是必须的啊
郴州电脑服务http://www.612459.com
回复

使用道具 举报

323

回帖

1926

积分

369 小时

在线时间

上尉

注册时间
2012-3-20
金币
1545 个
威望
2 个
荣誉
0 个
累计签到:44 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-9-20 16:30 |显示全部楼层
hcg101 发表于 2014-9-19 11:22
# GatewayID default
GatewayID 你的mac地址去掉冒号
# Listen on this port

谢谢谢谢,非常感谢
回复

使用道具 举报

286

回帖

6918

积分

3351 小时

在线时间

中校

注册时间
2011-4-4
金币
6257 个
威望
2 个
荣誉
0 个
累计签到:674 天
连续签到:0 天
[LV.730]常住居民
发表于 2014-9-20 17:29 |显示全部楼层
不客气,没有事去我的小站溜达一圈我就满足了。。。百度 郴州电脑服务 找到哎丫丫字样的去溜达溜达。
郴州电脑服务http://www.612459.com
回复

使用道具 举报

1673

回帖

5978

积分

2559 小时

在线时间

中校

初级工程师

注册时间
2011-9-17
金币
3936 个
威望
2 个
荣誉
1 个
累计签到:29 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-9-20 22:00 |显示全部楼层
楼主这么快要商用了
回复

使用道具 举报

323

回帖

1926

积分

369 小时

在线时间

上尉

注册时间
2012-3-20
金币
1545 个
威望
2 个
荣誉
0 个
累计签到:44 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-9-24 23:15 |显示全部楼层
q8263542 发表于 2014-9-22 16:39
这个有LUCI-APP-WIFIDOG源码,但是编译后,修改页面后,wifidog.conf文件不会同时变化

请问你有吗?
回复

使用道具 举报

头像被屏蔽

418

回帖

1106

积分

434 小时

在线时间

禁止发言

注册时间
2008-10-27
金币
615 个
威望
1 个
荣誉
0 个
累计签到:3 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-9-25 20:15 |显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

286

回帖

6918

积分

3351 小时

在线时间

中校

注册时间
2011-4-4
金币
6257 个
威望
2 个
荣誉
0 个
累计签到:674 天
连续签到:0 天
[LV.730]常住居民
发表于 2014-9-26 07:38 |显示全部楼层
lvsea2008 发表于 2014-9-25 20:15
但是一般TT里的网页认证除对接的服务器地址外还要求有个路径选项的,这个在哪里填?

#AuthServer {
#    Hostname auth.ilesansfil.org
#    SSLAvailable yes
#    Path /
#}

#AuthServer {
#    Hostname auth2.ilesansfil.org
#    SSLAvailable yes
#    Path /
#}
应该是这个的
郴州电脑服务http://www.612459.com
回复

使用道具 举报

323

回帖

1926

积分

369 小时

在线时间

上尉

注册时间
2012-3-20
金币
1545 个
威望
2 个
荣誉
0 个
累计签到:44 天
连续签到:0 天
[LV.50]初入江湖
发表于 2014-10-13 00:52 |显示全部楼层
q8263542 发表于 2014-10-7 10:34
有啊,你有空研究吗

一起研究吧
回复

使用道具 举报

722

回帖

3550

积分

535 小时

在线时间

少校

注册时间
2012-8-4
金币
2756 个
威望
1 个
荣誉
0 个
累计签到:163 天
连续签到:0 天
[LV.200]无线新星
发表于 2015-6-7 00:17 |显示全部楼层
opewrt的 wifidog.conf怎么配置啊。跪谢
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 微信登录

本版积分规则

Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2026-7-9 14:03

返回顶部 返回列表