A secured SOCKS5 proxy implementing the Shadowsocks protocol in C, aimed at embedded devices and low-resource machines.
Overview
shadowsocks-c is a lightweight secured SOCKS5 proxy derived from the Shadowsocks family. It targets embedded hardware and low-end boxes where a small C implementation with low resource use matters. The codebase uses libuv, asynchronous DNS, and portable static builds across common desktop and server platforms.
Command-line tools include ss-local, ss-server, and related modes for tunneling and management. Configuration can live in JSON files or on the command line, with encryption methods spanning modern AEAD ciphers and Shadowsocks 2022 options. A Docker image on ghcr.io is the recommended way to run a server, bundling static binaries for Linux AMD64 and ARM64.
The codebase continues the shadowsocks-libev lineage after modernization: bundled dependencies, CMake builds, optional minimal builds without regex or plugins, and embedding libraries for other programs via CMake or pkg-config. Distribution packages and legacy service names from shadowsocks-libev integrations are still mentioned for compatibility.
Client workflows point at server address, port, password, and method, with UDP relay and optional features such as TCP fast open where the platform supports them.
Key features
- SOCKS5 client and server binaries
- libuv-based async runtime
- Static portable builds
- Docker server image
- JSON configuration
- Multiple AEAD cipher methods
- Embedding library for C programs
- UDP relay support
Use cases
- Shadowsocks server on low-end Linux
- Proxy on embedded devices
- Client local forwarding with ss-local
- Containerized proxy deployment