Git Product home page Git Product logo

wifi-portal's Introduction

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!

wifi-portal's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.