8000 GitHub - ZiqiangYu/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.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Notifications You must be signed in to change notification settings

ZiqiangYu/wifi-portal

 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 35.5%
  • HTML 30.8%
  • Lua 26.9%
  • Makefile 4.9%
  • CSS 1.5%
  • Shell 0.4%
0