百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
C

clash-rs

> 编程语言
开源

自定义协议网络代理

1.7K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

自定义协议网络代理

ClashRS

## ✨ Features - 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. - ⚙️ AnyTLS/Hysteria2/Shadowquic/Shadowsocks/Socks5(TCP/UDP)/SSH/Tailscale/tor(onion)/Trojan/Tuic/VLess/Vmess/Wireguard(userspace) outbound support with different underlying transports(gRPC/TLS/H2/WebSocket/etc.). - Multiple inbound modes: HTTP, SOCKS5, Mixed, Shadowsocks, AnyTLS, Redir, TProxy, and TUN (utun) for transparent proxying. - Dynamic remote rule/proxy loader. - Tracing with Jaeger ## Protocol Support ### Inbounds | Type | Description | Notes | |------|-------------|-------| | `http` | HTTP proxy | | | `socks` | SOCKS5 (TCP + UDP) | | | `mixed` | HTTP + SOCKS5 on a single port | | | `shadowsocks` | Shadowsocks inbound with multi-user support | `shadowsocks` feature | | `anytls` | AnyTLS inbound with multi-user support, GFW fallback camouflage | | | `tun` | TUN device for transparent proxying | All platforms | | `tproxy` | Transparent proxy (TCP + UDP) | Linux; `tproxy` feature | | `redir` | TCP redirect | Linux; `redir` feature | | `tunnel` | Routes all traffic to a fixed target | | ### Outbounds | Protocol | Transports | Notes | |----------|-----------|-------| | `direct` | — | | | `reject` | — | | | `ss` | plain · obfs-http · obfs-tls · v2ray-plugin-ws · v2ray-plugin-ws-tls · shadow-tls | `shadowsocks` feature | | `socks5` | plain TCP · TLS | | | `anytls` | TLS | | | `trojan` | TLS · WebSocket+TLS · gRPC+TLS | | | `vmess` | TCP · TCP+TLS · WebSocket+TLS · H2+TLS · gRPC+TLS | | | `vless` | TLS · WebSocket+TLS · H2+TLS · gRPC+TLS · REALITY | | | `wireguard` | UDP (userspace) | `wireguard` feature | | `hysteria2` | QUIC · obfs-salamander | | | `tuic` | QUIC (bbr / cubic / new_reno) | `tuic` feature | | `shadowquic` | QUIC · over-stream | `shadowquic` feature | | `ssh` | SSH tunnel | `ssh` feature | | `tor` | Onion routing | `onion` feature (`plus` build) | | `tailscale` | Mesh VPN | `tailscale` feature (`plus` build) | ## Environment Support - Linux - macOS - Windows - You need to copy the [wintun.dll](https://wintun.net/) file which matches your architecture to the same directory as your executable and run your program as administrator. - iOS - [](https://apps.apple.com/by/app/choclite/id6467517938) - TestFlight Access: [TestFlight](https://testflight.apple.com/join/cLy4Ub5C) ## Sponsors - [Fast Access Cloud](https://fast-access.cloud/) ## Install ### Use With GUI https://github.com/LibNyanpasu/clash-nyanpasu ### Download Prebuilt Binary Can be found at https://github.com/Watfaq/clash-rs/releases ### Docker Image https://github.com/Watfaq/clash-rs/pkgs/container/clash-rs ### Local Build Dependencies * cmake (3.29 or newer) * libclang([LLVM](https://github.com/llvm/llvm-project/releases/tag/llvmorg-16.0.4)) * [nasm](https://www.nasm.us/pub/nasm/releasebuilds/2.16/win64/) (Windows) * protoc(for geodata proto generation) * [pre-commit](https://pre-commit.com/) for managing git hooks ``` $ pipx install pre-commit $ pre-commit install $ cargo build ``` ## Usage ### Example Config sample.yaml: ```yaml port: 7890 ``` ### Run ```shell -> % ./target/debug/clash-rs -c sample.yaml ``` ### Help ``` … ``` ## FFI ### Compile for apple platforms To create a framework for iOS and macOS platforms ```shell git clone https://github.com/Watfaq/clash-rs.git cd clash-rs chmod +x scripts/build_apple.sh ./scripts/build_apple.sh ``` This command will generate a `clashrs.xcframework` file in the `build` directory. ## Links - [Documentation](https://watfaq.gitbook.io/clashrs-user-manual/) - [Config Reference](https://watfaq.github.io/clash-rs/) - [Roadmap](https://github.com/Watfaq/clash-rs/issues/59) ## Contributing - [CONTRIBUTING.md](CONTRIBUTING.md) - [Telegram User Group](https://t.me/thisisnotclash) ## ❤️ Inspired By - [Dreamacro/clash](https://github.com/Dreamacro/clash) - [eycorsican/leaf](https://github.com/eycorsican/leaf)

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustclashclash-rsclashrshsalc

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言