WiFiDog Captive Portal

WiFiDog Captive Portal

From Wikipedia, the free encyclopedia

WiFiDog is an open source embeddable captive portal solution used to build wireless hotspots.

WiFiDog consists of two components: the gateway and the authentication server. It was written by the technical team of Île Sans Fil and is included in the software package repository[1] of OpenWrt.

Gateway

The WiFiDog gateway is written in C with no dependencies beyond the Linux kernel. This structure enables it to be embedded in devices such as the WRT54G router running OpenWrt, FreeWRT or DD-WRT or most PCs running Linux. Linux Journal reports that a working gateway install can be packaged in less than 15Kb on an i386 platform.[2]

Authentication server

The WiFiDog authentication server is a PHP and PostgreSQL server based solution written to authenticate clients in a captive portal environment. WiFiDog Auth provides portal specific content management, allows users to create wireless internet access accounts using email access, provides gateway uptime statistics and connection specific and user log statistics.

References

External links

1、因手头有一个7620N芯片的大功率无线路由器(万兴达WR5508商用路由),由于要使用无线广告营销功能,但在网上搜寻了很久,都没找到合适的固件。 2、可能有人会说支持7620方案的广告营销固件多的是,但这款路由器是大功率的,500mW,刷了海蜘蛛、RippleOS以及其他有wifidog功能的固件,无线超过3-5米就没有信号了。只有刷了openwrt和PandoraBox固件,无线信号超级强大,达到26db。 3、因此,只能使用openwrt和PandoraBox固件,查询了多种方法,都是需要对固件进行编译的,由于小弟不懂编程,只有通过网友们的安装配置经验进行参考,在刷好的固件基础上安装wifidog和Luci界面的配置,如果哪位高手能将Luci-wifidog源码打包成ipk安装包,小弟万分感谢!此方法仅供想玩wifidog的朋友参考,编程高手勿拍砖就行了! 方法: 1、安装wifidog(前提是路由器必须接入互联网) [root@PandoraBox:/root]#opkg update [root@PandoraBox:/root]#opkg install wifidog [root@PandoraBox:/root]#/etc/init.d/wifidog enable [root@PandoraBox:/root]#/etc/init.d/wifidog start 备注:安装wifidog可能需要依赖包 libc iptables-mod-extra iptables-mod-ipopt iptables-mod-nat-extra libpthread 2、安装配置luci-wifidog(luci-wifidog源码是在网上找的,别人已经设置好了的,如果不喜欢,自行到官网下) (1)使用winscp把源码controller文件夹下的内容复制到/usr/lib/lua/luci里目录的controller下,model放到model下 (2)源码root文件夹下的内容复制到root/etc下各自相应的目录下 (3)源码ipkg文件夹下的内容复制到/usr/lib/opkg目录下 (4)源码makefile文件复制到/etc下并给xxx权限 (5)最后重启路由器。
OpenWRT是一款轻量级的Linux发行版,特别适合嵌入式设备如路由器和无线接入点。配置Captive Portalcaptive Wi-Fi 登录界面),也就是强制用户通过网络认证后才能访问互联网,可以增强网络安全并提供服务控制。以下是基本步骤: 1. **安装必要的软件**: 首先,你需要在OpenWRT上安装`luci-captiveportal`模块,它包含了一个Web界面来设置Captive Portal功能。在终端中输入: ``` opkg update opkg install luci-captiveportal ``` 2. **启动和启用服务**: 启动服务并将其添加到开机自启项: ``` /etc/init.d/luci-captiveportal start rc-service luci-captiveportal enable ``` 3. **登录界面设置**: 访问`http://<your-router-ip>/index.php?target=captiveportal`,这里 `<your-router-ip>`替换为你的路由器的实际IP地址。登录界面会显示出来,你可以设置用户名、密码提示、欢迎消息等,并配置认证规则。 4. **认证服务器配置**: 如果需要,还需要配置认证服务器,通常是DHCP服务器,以便在分配IP地址的同时处理用户验证。在`/etc/config/dhcp`或`/etc/config/auth`文件中调整相关配置。 5. **防火墙策略**: 确保防火墙允许来自Captive Portal请求的流量,通常HTTP和HTTPS端口会被限制。编辑`iptables`或`ufw`规则来放行这些端口。 6. **保存并重启**: 在Web界面做更改后,记得点击“Save”按钮,并可能需要重启路由器使其生效。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值