The portal certification method has multiple, we have chosen a very common open source project WiFiDog, support OpenWrt, large user groups, information is more perfect, Chinese information more.
Key Benefits:
- Open Source (Https://github.com/wifidog GitHub, provides source code and PHP-based authentication Gateway source code)
- Domestic use of wifidog is relatively common, two of times to develop more easily.
- Code portability is high and virtually unlimited on all platforms
(Summary: Low cost, easy to get started.) )
At present, there are some shortcomings
- Through the actual capture packet discovery, heartbeat packet constantly check the user online situation, gateway server performance overhead.
- Based on Iptables, the protocol is cumbersome and performance is relatively poor.
- Privacy issues, no encrypted URLs are delivered directly with privacy information.
Here's a look at the WiFiDog working mechanism:
Working mechanism
/ping Heartbeat Interface
"Get/ping/?gw_id= Gateway id&sys_uptime=1183&sys_memfree=105884&sys_load=0.14&wifidog_uptime=1169 HTTP /1.0 "
/login New user authentication jump page
Get/login/?gw_address=111&gw_port=111&gw_id=111&mac=88:72:0d:f2:88:29&url=url HTTP/1.1
/auth User Detection
/auth/?stage=counters&ip=192.168.10.81&mac=88:72:0d:f2:a8:29&token=85ea71f2484b2c52fee& incoming=5638570&outgoing=722214&gw_id=111 http/1.0
This article by http://www.wifidog.pro/2015/04/09/wifidog%E8%AE%A4%E8%AF%81%E4%BC%98%E7%BC%BA%E7%82%B9.html compilation, reprint please indicate the source
WiFiDog certification Advantages and disadvantages WiFiDog principle