A hight performance and lightweight captive portal solution for HTTP(s)
Go to file
2017-11-30 15:24:01 +08:00
doc Update 如何给项目提交PR.md 2017-11-04 03:40:57 -05:00
libhttpd add no cache to http header 2017-09-28 17:17:50 +08:00
src skip always dns resolve when ip already exist 2017-11-30 15:24:01 +08:00
_config.yml Set theme jekyll-theme-modernist 2017-03-22 18:05:03 +08:00
.editorconfig Update .editorconfig 2017-03-16 16:31:29 +08:00
.gitignore Update .gitignore 2017-05-11 09:49:45 +08:00
.travis.yml Update .travis.yml 2017-04-17 10:41:04 +08:00
apfree_wifidog_mqtt_protocol Create apfree_wifidog_mqtt_protocol 2017-06-09 11:38:59 +08:00
AUTHORS liudf 20161125 Add liudengfeng to AUTHORS file 2016-11-25 14:36:44 +09:00
authserver-offline.html Rename authserver_offline.html to authserver-offline.html 2016-11-24 17:19:03 +08:00
AUTHSERVER.md add auth server repo in AUTHSERVER.md 2017-03-24 10:25:12 +08:00
CMakeLists.txt Update CMakeLists.txt 2016-11-16 17:44:42 +08:00
CONTRIBUTING.md Update CONTRIBUTING.md 2017-10-24 15:02:24 +08:00
contributors.md skip always dns resolve when ip already exist 2017-11-30 15:24:01 +08:00
COPYING liudf 20151209 Begin apfree wifidog open project 2015-12-09 13:49:51 +08:00
internet-offline.html Rename internet_offline.html to internet-offline.html 2016-11-24 17:19:26 +08:00
login.html Update login.html 2017-10-27 17:52:22 +08:00
logo.png add logo to project 2017-05-22 17:36:38 +09:00
NEWS Update NEWS 2016-12-23 14:24:05 +08:00
README_ZH.md Update README_ZH.md 2017-11-04 03:42:24 -05:00
README.md Update README.md 2017-11-04 03:18:27 -05:00
TODO Update TODO 2016-12-21 18:16:03 +08:00
wifidog-msg.html liudf 20161117 Add 2 file 2016-11-17 13:04:37 +09:00
wifidog-msg.html.in liudf 20160603 Change wifidog-msg page 2016-06-03 19:17:07 +09:00
wifidog-redir.html liudf 20161117 Add 2 file 2016-11-17 13:04:37 +09:00
wifidog-redir.html.front Update wifidog-redir.html.front 2016-11-25 13:29:53 +08:00
wifidog-redir.html.in liudf 20160411 move domains && mac operation to ping thread 2016-04-11 11:24:30 +09:00
wifidog-redir.html.rear Create wifidog-redir.html.rear 2016-11-24 10:48:29 +08:00
wifidog.conf liudf 20151209 Begin apfree wifidog open project 2015-12-09 13:49:51 +08:00

ApFreeWiFiDog

license PRs Welcome Issue Welcome Release Version OpenWRT KunTeng

Apfree WiFiDog: Efficient captive portal solution

Apfree-WiFidog is an open source captive portal solution for wireless router which with embeddable Linux(LEDE/Openwrt).

中文介绍

Features different between original wifidog and us

It has some awesome features:

  • Compatible with original wifidog protocol. You can seamless migration Apfree WiFidog to connect your auth server if you runned traditional wifidog.

  • HTTPS support. Not only HTTP, Apfree WiFiDog can capture HTTPS URL request. It's a big deference between traditional WiFiDog.

  • Efficient performance. Run shell command time curl --compressed to test the Apfree WiFiDog reaction rate, HTTP response time is 0.05s and HTTPS is about 0.2s.

  • Dynamical bulk loading. Support MAC address and IP address bulk loading with out restart Apfree WiFiDog.

  • Wide application of business. Apfree WiFidog has been installed and used in tens of thousands routers from KunTeng.Org and partners. Users have been affirmed, fully embodies the applicability, reliability.


Added to Openwrt&LEDE

Please go to package_apfree_wifidog


Getting started

After compiling and installing Apfree WiFiDog into your local router, run the ps | grep wifidog command. The ps | grep wifidog command queries the Linux system for information about Apfree WiFiDog.

root@lede:~# ps | grep wifidog
 1406 root      6532 S    /usr/bin/wifidog -c /tmp/wifidog.conf -f -d 0

In this example, we can see Apfree WiFiDog has run automatically. This command shows some useful information:

  • /usr/bin/wifidog is the executable binary daemon program, it's named wifidog for compatible.
  • /tmp/wifidog.conf is the WiFiDog's configuration file that generated by parsing /etc/config/wifidog. The UCI format file /etc/config/wifidog is the main configuration file for user, and it will be used by Apfree WiFidog to generate wifidog reader file /tmp/wifidog.conf.
  • Using operations of -c -f -d for default parameters, and you can get their by running command wifidog --help.

The default UCI configuration file like this:

config wifidog
        option gateway_interface 'br-lan'
        option auth_server_hostname 'entrance.yourauth.org'
        option auth_server_port '80'
        option auth_server_path '/wifidog/'
        option check_interval '60'
        option client_timeout '72000'
        option httpd_max_conn '200'
        option pool_mode '1'
        option thread_number '5'
        option queue_size '20'
        option wired_passed '1'
        option trusted_domains 'www.baidu.com,www.qq.com,www.qq.com.cn,www.weixin.com'

wired_passed means whether LAN access devices need to auth or not, value 1 means no need to auth

Domains of www.baidu.com,www.qq.com,www.qq.com.cn,www.weixin.com is trusted in this default configuration file, and you can modify it to what you want.

Apfree wifidog Auth server open source project

Please read AUTHSERVER.md

Test document

1, Apfree_WiFidog与原版wifidog性能对比报告

2, apfree_wifidog性能测试报告

3, 线程池和非线程池性能差别

4, 阈值调整测试技巧报告

How To Contribute

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

Please read CONTRIBUTING.md before pushing any changes.

apfree wifidog qq group 331230369