Openwrt 搭建 Wifidog

先更新opkg update,再安装依赖

opkg install libc
opkg install iptables-mod-extra
opkg install iptables-mod-ipopt
opkg install iptables-mod-nat-extra
opkg install libpthread

然后安装 wifidog opkg install wifidog

路由设置
网络/防火墙lan => wan转发改为拒绝

准备工作
创建 wiwiz 账号&热点:http://cp.wiwiz.com/as/s/menu 记下 Hotspot ID

最后安装 wiwiz

wget http://dl.wiwiz.com/hsbuilder-util-latest-OpenWrt.tar.gz
tar -zxf /root/hsbuilder-util-latest-OpenWrt.tar.gz
/wp-content/local/hsbuilder/hsbuilder_setup4openwrt.sh setup

提示
输入:Hotspot ID
wiwiz 账号:User Name
External NIC:eth0
Internal NIC:br-lan
Server Address:cp.wiwiz.com:80

上面步骤完成后,用其它设备测试打开网页 wifidog 是否能弹窗。

参考:
http://www.wiwiz.com/zh/archives/653.htm/