GNU General Public License v3.0

项目介绍

liudf0716/apfree-wifidog 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 GNU General Public License v3.0 许可证,目前获得 941 个 Star、310 次 Fork。

仓库全名
liudf0716/apfree-wifidog
开源许可证
GNU General Public License v3.0
Star 数
941
Fork 数
310
未关闭 Issue
2

README 摘要

ApFree WiFiDog A High-Performance Captive Portal Solution for HTTP(S) on OpenWrt 🌍 English | 🇨🇳 中文 | 📑 Auth Server API 📖 Introduction ApFree WiFiDog is an open-source, high-performance captive portal for HTTP and HTTPS, tailored for the OpenWrt platform. It provides secure authentication, high concurrency handling, and flexible rule management for Wi-Fi networks. 🎬 Introduction Video 🚀 Features Stable –…

完整内容见 GitHub 原始 README 或本页 。

常见问题

apfree-wifidog 用什么语言开发?

主要使用 C 编写,采用 GNU General Public License v3.0 许可证,目前有 941 个 Star。

apfree-wifidog 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 apfree-wifidog 的源码?

可以直接克隆仓库:git clone https://github.com/liudf0716/apfree-wifidog.git,默认分支为 master;安装与运行步骤见仓库 README。

apfree-wifidog 最近还在维护吗?

仓库最近一次更新为 6 天前,当前有 2 个未关闭 Issue;Star 数为 941,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

apfree-wifidog is a high-performance captive portal solution that serves as a gateway between your wireless networks and the Internet. Optimized for both HTTP and HTTPS traffic, it ensures secure border control while enabling seamless user authentication and efficient network management. 技术交流QQ群 331230369

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1626
价值分
664
活跃状态
活跃

语言占比

C
CMake
HTML
Lua
Shell

README

ApFree WiFiDog Logo

ApFree WiFiDog

A High-Performance Captive Portal Solution for HTTP(S) on OpenWrt

License PRs Welcome Issues Welcome Release Platform QQ Group

🌍 English | 🇨🇳 中文 | 📑 Auth Server API


📖 Introduction

ApFree WiFiDog is an open-source, high-performance captive portal for HTTP and HTTPS, tailored for the OpenWrt platform.
It provides secure authentication, high concurrency handling, and flexible rule management for Wi-Fi networks.

🎬 Introduction Video

ApFree WiFiDog Introduction


🚀 Features

  • Stable – API-based iptables integration, thread-safe.
  • Fast – Built with libevent2 + epoll, far outperforms original WiFiDog.
  • Secure – Full HTTPS redirection support.
  • Real-time – Long connection support (WebSocket, MQTT).
  • Flexible – Local + Cloud authentication, splash page mode.
  • Dynamic Rules – Manage MAC, IP, domains without restart.
  • eBPF Support – Traffic control & DPI via eBPF.
  • Active Community – Fast responses and continuous updates.

📦 Installation

On OpenWrt (latest):

apk update
apk add apfree-wifidog

On older OpenWrt:

opkg update
opkg install apfree-wifidog

👉 For LuCI Web Interface, see LuCI Integration.


🖥️ LuCI Integration

  • ApFree WiFiDog provides a LuCI Web UI via luci-app-apfree-wifidog.
  • Integrated in the luci repo.

💡 Recommended: use chawrt,
which bundles ApFree WiFiDog + LuCI for a ready-to-use OpenWrt firmware.


⚙️ Basic Usage Example

1. Cloud Authentication Mode

  • Requires external auth server.
  • Configure via LuCI: Auth Server (Hostname, Port, Path) + Gateway Interface.
  • Enable WebSocket Support for real-time status.

2. Local Authentication (Splash Page)

  • No external auth server needed.
  • Configure LuCI: Gateway Interface + Redirect URL (welcome / terms page).
  • Simple click-to-continue or custom splash page.

🛠️ Troubleshooting

Logs

  • Check via:
    logread
    
  • Increase debug level in wifidogx.conf → DaemonLogLevel 7.

Common Issues

  • No redirection → check GatewayInterface, firewall rules, DNS.
  • Sites blocked → update trusted domains via wdctlx show domain.
  • Device issues → check MAC lists (wdctlx show mac).

Useful wdctlx Commands

wdctlx status client       # Show authenticated clients
wdctlx show domain         # Show trusted domains
wdctlx add domain example.com
wdctlx apfree user_list    # List online users

🔬 Technical Overview

  • Event-driven architecture (libevent2) for massive concurrency.
  • Firewall integration via iptables (with nftables support).
  • Auth flow: Redirect → Auth Server → Firewall update → Internet access.

📑 See Auth Server API for protocol details.


🤝 Contributing

We welcome contributions!


📬 Contact


评论

暂无评论