2026-02-25 17:33:53 +08:00
2026-02-25 17:33:53 +08:00
2026-02-23 19:18:04 +08:00
2026-01-01 21:24:55 +08:00
2026-02-21 15:14:18 +08:00
2026-01-06 10:28:26 +08:00
2022-04-19 02:23:41 +08:00
2020-10-10 18:49:55 +08:00
2024-05-01 23:59:44 +08:00
2026-02-24 16:11:11 +08:00

Leaf

A versatile and efficient proxy framework.

Supported Protocols

Proxy Protocols

Protocol Inbound Outbound
HTTP ✅ ❌
SOCKS5 ✅ ✅
Shadowsocks ✅ ✅
Trojan ✅ ✅
VMess ❌ ✅
Vless ❌ ✅

Transports & Security

Transport Inbound Outbound Notes
WebSocket ✅ ✅
TLS ✅ ✅
QUIC ✅ ✅
AMux ✅ ✅ Leaf specific multiplexing
Obfs ❌ ✅ Simple obfuscation
Reality ❌ ✅ Xray Reality
MPTP ✅ ✅ Multi-path Transport Protocol (Aggregation)

Traffic Control

Feature Inbound Outbound Notes
Chain ✅ ✅ Proxy chaining
Failover ❌ ✅ Failover with health check

Transparent Proxying

Mechanism Inbound Outbound Notes
TUN ✅ ❌ Linux, macOS, Windows, iOS, Android; lwip, smoltcp
NF ✅ ❌ Windows, NetFilter SDK
TPROXY ❌ ❌ Linux; Coming soon

Building

cargo build -p leaf-cli --release
./target/debug/leaf --help

License

This project is licensed under the Apache License 2.0.

S
Description
A versatile and efficient proxy framework.
Readme Apache-2.0
4.5 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 99.5%
Shell 0.5%