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) (Architecture) |
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
./target/debug/leaf --help
License
This project is licensed under the Apache License 2.0.