安装
opkg update
opkg install nodogsplash
配置
1.打开/etc/config/wireless文件,加入
config wifi-iface
option device radio0 #如果是USB外置网卡改为radio1
option network lan1
option ifname ath1
option mode ap
option ssid nodogsplash
2.打开/etc/config/network文件,加入
config 'interface' 'lan1'
option 'ifname' 'ath1'
option 'proto' 'static'
option 'macaddr' '01:1B:24:D3:1F:37'
option 'ipaddr' '192.168.9.1'
option 'netmask' '255.255.255.0'
3.打开/etc/config/dhcp,加入
config dhcp lan1
option interface lan1
option start 100
option limit 150
option leasetime 12h
4.打开/etc/nodogsplash/nodogsplash.conf,修改
GatewayInterface ath1
#在第九行。
ClientForceTimeout 360
#验证过期时间,单位分钟。
RedirectURL
#登录后强制跳转地址。
5.自定义WEB页面在/etc/nodogsplash/htdocs
6.启动项加入/etc/init.d/nodogsplash start
重启连上ssid打开任意网页看效果。
参考
http://www.right.com.cn/forum/thread-132712-1-1.html
http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash