fangsheng009 / wifi-portal

wifi-portal is an very efficient captive portal solution for wireless router which with embeded linux(LEDE/Openwrt) system and it's using the Lua language.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WiFi-Portal(中文)

WiFi-Portal is a very efficient captive portal solution for wireless router which with embedded linux(LEDE/Openwrt) system and it's using the Lua language. It's referenced wifidog and apfree_wifidog, and it's a whole new one captive portal solution. Unlike wifidog and apfree_wifidog, wifi-portal does write kernel module to implement authentication management instead of using iptables to create firewall rules.

features:

  • Compatible with original wifodog protocol
  • Using the Lua language - Easy to modify and debug
  • Single threaded, Fully asynchronous, No blocking operation at all
  • Writing kernel module to implement authentication management instead of using iptables to create firewall rules
  • Support HTTPS
  • Alternative openssl and mbedtls

How to use

Install Auth Server Demo for WiFi-portal on Ubuntu

sudo apt install nginx nginx-extras
git clone https://github.com/zhaojh329/wifi-portal.git
sudo cp -r wifi-portal/authserver/nginx/sites-available /etc/nginx
sudo ln -s /etc/nginx/sites-available/wifidog /etc/nginx/sites-enabled/wifidog
sudo cp -r wifi-portal/authserver/www/wifidog /var/www/
sudo nginx -s reload

Modify config of Auth Server(/etc/nginx/sites-available/wifidog)

Install WiFi-Portal on OpenWRT/LEDE

git clone https://github.com/zhaojh329/lua-ev-openwrt.git
cp -r lua-ev-openwrt openwrt_dir/package/lua-ev

git clone https://github.com/zhaojh329/evmongoose.git
cp -r evmongoose/openwrt openwrt_dir/package/evmongoose

git clone https://github.com/zhaojh329/wifi-portal.git
cp -r wifi-portal/openwrt openwrt_dir/package/wifi-portal

cd openwrt_dir
./scripts/feeds update -a
./scripts/feeds install -a

make menuconfig
Libraries  --->
	Networking  --->
		-*- evmongoose
			Configuration  --->
				[*] Enable HTTP gzip module
				Selected SSL library (OpenSSL)  --->
Network  --->
	Captive Portals  --->
		<*> wifi-portal
		
make package/wifi-portal/compile V=s

How To Contribute

Feel free to create issues or pull-requests if you have any problems.

Please read contributing.md before pushing any changes.

Thanks for the following project

If the project is helpful to you, please do not hesitate to star. Thank you!

About

wifi-portal is an very efficient captive portal solution for wireless router which with embeded linux(LEDE/Openwrt) system and it's using the Lua language.

License:GNU General Public License v3.0


Languages

Language:C 35.4%Language:HTML 30.8%Language:Lua 26.9%Language:Makefile 4.9%Language:CSS 1.5%Language:Shell 0.4%