Some checks failed
ci / test (macos-latest) (push) Has been cancelled
ci / test (ubuntu-latest) (push) Has been cancelled
ci / build-cli-cross (aarch64-unknown-linux-musl) (push) Has been cancelled
ci / build-cli-cross (arm-unknown-linux-musleabi) (push) Has been cancelled
ci / build-cli-cross (armv7-unknown-linux-musleabihf) (push) Has been cancelled
ci / build-cli-cross (i686-unknown-linux-musl) (push) Has been cancelled
ci / build-cli-cross (x86_64-pc-windows-gnu) (push) Has been cancelled
ci / build-cli-cross (x86_64-unknown-linux-musl) (push) Has been cancelled
ci / build-cli-macos (aarch64-apple-darwin) (push) Has been cancelled
ci / build-cli-macos (x86_64-apple-darwin) (push) Has been cancelled
ci / build-lib-apple (push) Has been cancelled
ci / build-lib-android (push) Has been cancelled
62 lines
1.6 KiB
Markdown
62 lines
1.6 KiB
Markdown
<p align="center">
|
|
<img src="https://github.com/eycorsican/leaf/workflows/releases/badge.svg">
|
|
<img src="https://github.com/eycorsican/leaf/workflows/ci/badge.svg">
|
|
</p>
|
|
|
|
<h1 align="center">Leaf</h1>
|
|
|
|
<p align="center">
|
|
A versatile and efficient proxy framework.
|
|
</p>
|
|
|
|
## 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](docs/mptp_architecture.md), [Usage](docs/mptp_usage.md)) |
|
|
|
|
### 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](https://netfiltersdk.com/) |
|
|
| TPROXY | ❌ | ❌ | Linux; Coming soon |
|
|
|
|
## Building
|
|
|
|
```sh
|
|
cargo build -p leaf-cli --release
|
|
./target/debug/leaf --help
|
|
```
|
|
|
|
## License
|
|
|
|
This project is licensed under the [Apache License 2.0](https://github.com/eycorsican/leaf/blob/master/LICENSE).
|