* refactor(outbound): make the SOCKS5 handshake and Shadowsocks stream generic over their transport * feat(outbound): add a tunneled dial entry and run TLS and REALITY over it * feat(outbound): implement tunneled dial for SOCKS5, Shadowsocks, Trojan, VLESS and VMess * feat(config): parse chain nodes as hops from entry to exit * feat(config): reject chains with missing, ambiguous or unsupported hops * feat(outbound): build chain runtimes from the hops of their own generation * feat(outbound): dial chain nodes hop by hop * feat(core): present chain nodes in the APIs and skip address probes for them * docs(outbound): describe chain nodes * feat(config): resolve group edges and compose exit routes in one place * feat(config): parse and validate the group exit field * refactor(outbound): take group depth and cycle cutting from the group graph * feat(outbound): cache route runtimes per generation and dial routes over their hops * feat(outbound): route group selections through their exits as typed targets * refactor(core): collect group leaves with the shared group traversal * fix(core): key pooled DNS transports by the dialed target * docs(config): describe the group exit field and how its routes grow * feat(config): accept more exit routes: past depth 8, via later final namesakes, around cycles * feat(config): tell which chain exits can carry UDP over a stream * feat(outbound): carry UDP over a tunneled stream for Trojan and VLESS * feat(outbound): dial chain UDP hop by hop * feat(outbound): answer UDP capability for nodes and routes from one query * feat(core): share one chain association per client source when the exit registers it * feat(core): dial route UDP and count it against the failing hop or the exit * feat(outbound): give routes UDP candidates when their exit carries UDP * fix(core): publish group UDP connectivity from the shared capability query * test(outbound): run the Xray chain UDP case in the weekly exact lane * docs(outbound): describe UDP through chain nodes and exit groups * test(core): pin the DNS packet transport refusal of group exit routes --------- Co-authored-by: eries <coloredflowers@outlook.com>
7.4 KiB
honk
An experimental transparent-proxy engine for Linux, written in Rust.
Documentation / Web UI demo / Releases
English / 简体中文
Early alpha, not recommended for production. Expect breaking changes, incomplete features, and limited real-world validation.
honk follows the design of dae's eBPF datapath and configuration syntax, and of sing-box's outbound groups and Clash API. It is an independent implementation, not a port of either project.
Capabilities
- Transparent TCP/UDP for LAN-forwarded and host-originated traffic through TC eBPF,
dae0/daens, and compiled routing. - Outbounds include SOCKS5, Shadowsocks/2022, Trojan, AnyTLS, Hysteria2, TUIC, Juicity, VMess, VLESS,
direct, andblock. Trojan, VMess, and VLESS support H2 XHTTP (packet-up,stream-up,stream-one). VMess is TCP-only. Proxy chains (front -> land) carry TCP through two to four supported proxies. For UDP, every hop must qualify for tunneled TCP, including the entry, and the exit must be an eligible Trojan or native-UDP VLESS node. See protocol limits. - Groups: Selector (the default), URLTest, LoadBalance, Fallback, and Score. Score uses business observations and bounded validation; see group policies. A group
exitappends a fixed exit to the selected path. Multi-hop UDP follows the same hop requirements as a chain. - DNS: UDP, TCP, DoT, DoH, DoQ, and DoH3 upstreams, optionally through a node or group, with routing and caching.
- Configuration and control: dae syntax, subscriptions, reload, a Clash-compatible REST/WebSocket API, and the
honk-toolCLI toolbox.
There is no FakeIP engine, full mihomo parity, or Windows/macOS datapath.
Install
Download an archive for your platform from Releases. Releases cover x86_64 and aarch64 Linux; full suits most deployments.
| Build | Native API | Clash API | Embedded doona and doona lite |
|---|---|---|---|
full |
Yes | Yes | Yes |
native-api |
Yes | No | No |
clash-api |
No | Yes | No |
Every build comes as a static musl binary; full also comes linked against glibc (gnu). Archives with stock in the name use the system allocator instead of jemalloc. Each release's Downloads section lists checksums and provenance.
Packages for Debian, Ubuntu, Fedora, openSUSE and Arch Linux are covered in the installation guide. For OpenWrt, use the daeuniverse package feed.
For source builds, follow Build from source. Release binaries embed eBPF; plain cargo build --release does not enable the real datapath.
Follow the startup guide for kernel checks, installation, and connectivity verification. Initial deployment changes network hooks, namespaces, and sysctls; keep an out-of-band management path available.
Web interface
honk works with two kinds of web UI:
- doona uses the native API, which adds observations, diagnostics and configuration editing. doona lite is a lighter preview edition. Try the demo or the lite demo.
- Clash dashboards such as zashboard use the Clash-compatible API.
For doona, enable experimental.native_api and set ui: 'embedded' in a full build, or ui: 'embedded-lite' for doona lite; the doona quick start walks through it. A native-api build can serve a separately installed doona from its directory instead. For a Clash dashboard, set experimental.clash_api; honk downloads zashboard on first start. The experimental settings list every field of both.
Documentation
The documentation index links configuration guides, native and Clash API references, subsystem designs, and operations guides in both languages.
Versions and compatibility
- Releases follow SemVer from
v0.1.0;-alpha.N,-beta.N, and-rc.Ntags are prereleases. Before1.0, minor releases may change configuration or behaviour; read the release notes before upgrading. - Transparent proxying requires root, Linux 6.12+, the required kernel options, and bpffs. See the startup guide linked above.
- Configuration uses dae syntax. See NFQUEUE operation and VLESS migration before changing an existing deployment.
- The native API uses
/api/v1; before1.0its contract may change in a minor release.GET /api/v1/versionreports the contract identity.
Development
The workspace contains configuration, shared eBPF types, NFQUEUE, outbound, core, and tooling crates; crates/honk-ebpf builds separately. See the Justfile and contribution policy.
Use mock mode for unprivileged userspace development. --mock-ebpf does not intercept traffic or test the datapath.
The rolling Debug prerelease provides the latest debug.* build from main for testing. These use the release profile, not Cargo's debug profile; retention and publication follow the release rules.
Report problems
Report proxy, routing, and DNS problems in honk issues; report web interface problems in doona issues.
For vulnerabilities, follow SECURITY.md.
Acknowledgments
- dae / daed-rs: eBPF transparent proxy lineage
- sing-box: outbound group and Clash API patterns
- daeuniverse/outbound: protocol reference
- juicity-rs by Markson Pigeonzilla Plus: Juicity protocol reference, wire-format alignment, and live interop testing
- aya-rs: Rust eBPF
License
SPDX-License-Identifier: GPL-3.0-only
Copyright (c) 2025, glassyiris <honk@catmint.cc> and honk contributors
The development-only dae parser oracle links dae (AGPL-3.0-only). It is never shipped or linked into honk-core.
TODO
- Evaluate AF_XDP and XDP paths for further performance gains
- Add a honk-specific REST API beyond Clash compatibility
- Add inbound support
- Explore macOS and Windows support; the datapath is Linux eBPF, so these platforms need another way to capture traffic

