ss-local
Shadowsocks local SOCKS5 proxy client
TLDR
SYNOPSIS
ss-local [-s server] [-p port] [-l localport] [-k password] [-m method] [options_]
DESCRIPTION
ss-local is the local client component of Shadowsocks, an encrypted proxy protocol. It listens on a local port as a SOCKS5 proxy server, encrypting all traffic and forwarding it through a remote Shadowsocks server to bypass network filtering.Applications configured to use the local SOCKS5 proxy have their traffic encrypted using methods such as AES-256-GCM or ChaCha20-Poly1305 before it leaves the local machine. The encryption method and password must match the remote server configuration. UDP relay mode (-u) enables proxying of UDP traffic for applications like DNS resolution and gaming.Connection parameters can be specified on the command line or stored in a JSON configuration file for convenience.
PARAMETERS
-s SERVER
Remote server hostname or IP.-p PORT
Remote server port.-l PORT
Local SOCKS5 listening port.-k PASSWORD
Shared password (must match server).-m METHOD
Encryption method (e.g., aes-256-gcm, chacha20-ietf-poly1305).-c FILE
JSON configuration file.-b ADDR
Local bind address.-i INTERFACE
Outgoing network interface.-t SECONDS
Socket timeout (default: 60).-a USER
Drop privileges to this user after startup.-f PIDFILE
Fork to background and write PID file.-n NUMBER
Maximum number of open files.-u
Enable UDP relay alongside TCP.-U
UDP-only relay (disable TCP).-6
Prefer IPv6 for hostname resolution.-v
Verbose logging.--fast-open
Enable TCP Fast Open.--reuse-port
Enable SO_REUSEPORT.--mptcp
Enable Multipath TCP.--no-delay
Enable TCP_NODELAY.--mtu MTU
Interface MTU for fragmentation.--acl FILE
Access Control List file.--plugin NAME
SIP003 transport plugin (e.g., v2ray-plugin, obfs-local).--plugin-opts OPTS
Options passed to the SIP003 plugin.--key BASE64
Pre-shared key as Base64 (alternative to -k).-h, --help
Show help.
CONFIGURATION
/etc/shadowsocks-libev/config.json
System-wide configuration file specifying server address, port, password, encryption method, and local listening settings.~/.shadowsocks/config.json
Per-user configuration file with the same JSON format as the system-wide config.
CAVEATS
Encryption method and password must exactly match the remote ss-server. Only proxies TCP by default; add -u for UDP. Deep packet inspection on some networks fingerprints and blocks Shadowsocks; mitigate with SIP003 plugins like v2ray-plugin or obfs. Not a full VPN; only applications configured to use the SOCKS5 endpoint are proxied.
HISTORY
Shadowsocks was created by clowwindy in 2012 for circumventing internet censorship. It uses encrypted proxy connections to bypass filtering.
SEE ALSO
ss-server(1), proxychains(1)
