- 🌈 Flexible traffic routing rules based off source/destination IP/Domain/GeoIP etc.
- 📦 Local anti spoofing DNS with support of UDP/TCP/DoH/DoT remote, and expose it as a local UDP/TCP/DoH/DoT server.
- 🛡 Run as an HTTP/Socks5 proxy, or utun device as a home network gateway.
- ⚙️ Shadowsocks/Trojan/Vmess/Wireguard(userspace)/Tor/Tuic/Socks5(TCP/UDP) outbound support with different underlying trasports(gRPC/TLS/H2/WebSocket/etc.).
- 🌍 Dynamic remote rule/proxy loader.
- 🎵 Tracing with Jaeger
- Linux
- macOS
- Windows
- You need to copy the wintun.dll file which matches your architecture to the same directory as your executable and run you program as administrator.
- iOS - TestFlight
https://github.com/LibNyanpasu/clash-nyanpasu
Can be found at https://github.com/Watfaq/clash-rs/releases
https://github.com/Watfaq/clash-rs/pkgs/container/clash-rs
Dependencies
$ cargo build
sample.yaml:
port: 7890
-> % ./target/debug/clash -c sample.yaml
-> % ./target/debug/clash -h
Usage: clash [OPTIONS]
Options:
-d, --directory <DIRECTORY>
-c, --config <FILE> [default: config.yaml]
-t, --test
-h, --help Print help
-V, --version Print version