0
点赞
收藏
分享

微信扫一扫

openwrt 利用 nodogsplash 打造广告路由器

JamFF 2022-02-24 阅读 82


1.编译时,选上 nodogsplash 软件包

Symbol: PACKAGE_nodogsplash [=y]
Type : tristate
Prompt: nodogsplash........................... Open public network gateway daemon x
Location:
-> Network
-> Captive Portals

由于新版本的 nodogsplash 默认是没有配置文件,需要我们自己手动去添加,

参考:​​​​http://wiki.openwrt.org/doc/howto/wireless.hotspot.nodogsplash​​​​

Nodogsplash

/etc/nodogsplash/nodogsplash.conf

需要修改的地方:

GatewayInterface br-lan

然后再路由上面运行 ,手机连接上wifi。随便打开一个网站,都会被强制跳转到nodogsplash定义好的web界面,该界面位于

/etc/nodogsplash/htdocs/splash.html

RedirectURL

这个是登录后强制跳转的网址。不需要的可以注释掉



举报

相关推荐

0 条评论