2024-01-19 16:45:01 -08:00
# 
2024-03-14 08:06:27 +01:00
[](https://github.com/apernet/OpenGFW/actions/workflows/check.yaml)
2024-01-19 16:45:01 -08:00
[![License][1]][2]
[1]: https://img.shields.io/badge/License-MPL_2.0-brightgreen.svg
[2]: LICENSE
** [中文文档 ](README.zh.md )**
2024-01-25 13:01:43 +09:00
** [日本語ドキュメント ](README.ja.md )**
2024-01-19 16:45:01 -08:00
2024-02-23 18:31:16 -08:00
OpenGFW is your very own DIY Great Firewall of China (https://en.wikipedia.org/wiki/Great_Firewall), available as a flexible, easy-to-use open source program on Linux. Why let the powers that be have all the fun? It's time to give power to the people and democratize censorship. Bring the thrill of cyber-sovereignty right into your home router and start filtering like a pro - you too can play Big Brother.
2024-02-17 22:34:38 -08:00
2024-03-29 13:06:29 -07:00
**Documentation site: https://gfw.dev/**
2024-02-23 15:43:08 -08:00
Telegram group: https://t.me/OpGFW
2024-01-19 16:45:01 -08:00
> [!CAUTION]
2024-03-29 13:06:29 -07:00
> This project is still in very early stages of development. Use at your own risk. We are looking for contributors to help us improve and expand the project.
2024-01-19 16:45:01 -08:00
## Features
- Full IP/TCP reassembly, various protocol analyzers
2024-04-01 21:49:06 -07:00
- HTTP, TLS, QUIC, DNS, SSH, SOCKS4/5, WireGuard, OpenVPN, and many more to come
- "Fully encrypted traffic" detection for Shadowsocks, VMess,
2024-02-26 15:17:07 -08:00
etc. (https://gfw.report/publications/usenixsecurity23/en/)
2024-03-20 18:10:22 -07:00
- Trojan (proxy protocol) detection
2024-01-27 13:56:08 -08:00
- [WIP] Machine learning based traffic classification
2024-01-21 16:11:01 -08:00
- Full IPv4 and IPv6 support
2024-01-19 16:45:01 -08:00
- Flow-based multicore load balancing
- Connection offloading
- Powerful rule engine based on [expr ](https://github.com/expr-lang/expr )
2024-02-03 10:55:20 -08:00
- Hot-reloadable rules (send `SIGHUP` to reload)
2024-01-19 16:45:01 -08:00
- Flexible analyzer & modifier framework
- Extensible IO implementation (only NFQueue for now)
2026-07-27 08:09:11 +08:00
- Web UI with live traffic dashboard and rule editor
## Web UI
OpenGFW ships with an optional web dashboard: live traffic statistics, a real-time event
feed with per-stream analyzer properties, and a rule editor that validates and hot reloads
the ruleset. It works on phones as well as on desktops.
Enable it in your config file:
```yaml
web :
enabled : true
listen : : 8080
secret : your-password-here # generated and logged on startup if left empty
# cert: /path/to/fullchain.pem
# key: /path/to/privkey.pem
```
The UI is embedded in the binary, so no extra files need to be deployed. Only expose it to
trusted networks — anyone with the password can change your rules. See
[web/README.md ](web/README.md ) for development instructions.
2024-01-19 16:45:01 -08:00
## Use cases
- Ad blocking
- Parental control
- Malware protection
- Abuse prevention for VPN/proxy services
- Traffic analysis (log only mode)
2024-02-23 15:43:08 -08:00
- Help you fulfill your dictatorial ambitions