shadowsocks-rust implements the Shadowsocks protocol as local and server programs that tunnel traffic through encrypted proxies. It supports SOCKS5, HTTP, transparent redirect, DNS, and tun modes on the client side.
Overview
This project ports Shadowsocks to Rust as command-line programs for both ends of a tunnel. The server accepts Shadowsocks connections; the local client proxies applications through compatible cipher and authentication options, including AEAD and AEAD-2022 suites with documented key generation helpers.
Client modes include SOCKS5 and HTTP local proxies, tunnel forwarding, Linux and BSD transparent redirection with iptables or pf, DNS proxying with ACL rules, FakeDNS, and tun interfaces on Linux, Android, macOS, iOS, and Windows where noted. An extended configuration format can define multiple servers; the local client can pick the lowest-latency server automatically.
Distribution paths named in the documentation include crates.io binaries, Homebrew, snap, static release builds, Docker images for several Linux architectures, and Kubernetes manifests with optional Helm charts. Optional features cover SIP008 online configuration, deprecated stream ciphers, and alternate memory allocators.
Server and manager components support multi-user APIs, outbound proxy chains for TCP, SOCKS5 and HTTP authentication files, and Windows service packaging. Environment variables and detailed cipher lists are documented for operators wiring clients to their own infrastructure.
Key features
- Shadowsocks local and server binaries
- SOCKS5 and HTTP local modes
- Transparent proxy and tun clients
- DNS and FakeDNS local modes
- Multi-server configuration
- Docker and Kubernetes deploy
- AEAD and AEAD-2022 ciphers
- Server manager multi-user API
Use cases
- Encrypted proxy bypass setups
- SOCKS5 local forwarding
- iptables transparent redirection
- Self-hosted Shadowsocks server
- Multi-user managed server pools