路由器內(nèi)置的有線和無線不用驗證,直接可以上網(wǎng)的,利用虛擬AP及USB網(wǎng)卡發(fā)送WEB驗證,可以采用nodogsplash。
先把你的無線加密,這個SSID供自己手機用,不用WEB驗證,
opkg update
opkg install nodogsplash
----------------打開/etc/config/wireless文件,加入-----------
config wifi-iface
option device 'radio1'? ? #如果你沒有USB網(wǎng)卡,請改成radio0
option ifname 'ath1'
option mode 'ap'
option ssid 'AIR-FOR-YOU'
option encryption 'none'
option network 'lan1'
config wifi-iface
option device 'radio0'? #從內(nèi)置無線中虛擬一個ap
option ifname 'ath6'
option mode 'ap'
option ssid 'AIR-4-YOU'
option encryption 'none'
option network 'lan1'
------------------打開/etc/config/dhcp文件,加入--------
config dhcp lan1
option interface? ? lan1
option start? ? 10
option limit? ? 150
option leasetime? ? 12h
------------------打開/etc/config/network文件,加入--------
config interface 'lan1'
option proto 'static'
option macaddr '00:1B:24:1c:BF:B7'
option ipaddr '192.168.4.1'
option netmask '255.255.255.0'
option _orig_ifname 'ath1'
option type 'bridge'
-----------/etc/nodogsplash/nodogsplash.conf--------------
ClientForceTimeout 360 這里驗證過期的時間,我給他們上一分鐘,就是 ClientForceTimeout 1,一分鐘后重新回到驗證頁。
......本站只呈現(xiàn)部分內(nèi)容,查看完整文章請到WiFiDog官網(wǎng)社區(qū)
http://www.wifidog.pro/2015/04/22/nodogsplash-openwrt%E5%AE%89%E8%A3%85.html,轉(zhuǎn)載請注明出處