ClashRS routes internet traffic through flexible rules across many inbound and outbound proxy protocols. It includes local DNS, transparent TUN modes, and remote rule loading.
Overview
ClashRS is network proxy software that diverts traffic through proxy servers according to configurable rules based on source or destination IP, domain, GeoIP, GeoSite, process, and similar matchers. Operators choose inbound listeners and outbound protocol handlers from a broad supported set.
Inbound modes include HTTP, SOCKS5, mixed HTTP and SOCKS on one port, Shadowsocks, AnyTLS, TUN transparent proxying, TProxy and redir on Linux, and tunnel routing to a fixed target. Outbounds cover protocols such as Shadowsocks, SOCKS5, Trojan, VMess, VLESS, WireGuard, Hysteria2, TUIC, SSH, Tor, and Tailscale with varied transports including TLS, WebSocket, gRPC, and HTTP/2.
A local anti-spoofing DNS stack supports remote resolution over UDP, TCP, DoH, and DoT and can expose those services locally. Dynamic remote rule and proxy providers can be loaded at runtime. Optional Jaeger tracing is available when built with telemetry features.
Prebuilt binaries, Docker images, and Apple platform frameworks are documented. Supported environments listed include Linux, macOS, Windows, iOS, iPadOS, and Android builds with platform-specific notes for transparent proxy marks.
Key features
- Flexible GeoIP and domain routing rules
- HTTP, SOCKS5, and mixed inbounds
- TUN, TProxy, and redir transparent modes
- Many outbound proxy protocols
- Local DNS with DoH and DoT
- Dynamic remote rule providers
- Jaeger tracing optional build
- Docker images and prebuilt binaries
Use cases
- Personal rule-based proxy routing
- Transparent proxy via TUN device
- Multi-protocol outbound chaining
- Mobile and desktop proxy cores