|
shadowsocks-c 3.3.6
|
shadowsocks client as socks5 proxy, C implementation
ss-local [options]
shadowsocks-c is a lightweight and secure socks5 proxy. It is a port of the original shadowsocks created by clowwindy. shadowsocks-c is written in pure C and takes advantage of libuv to achieve both high performance and low resource consumption.
shadowsocks-c consists of five components. ss-local(1) works as a standard socks5 proxy on local machines to proxy TCP traffic. For more information, check out shadowsocks-libev(8).
Options include all supported platform variants; restrictions are noted below.
-f <pid_file>-s <server_host>HOST:PORT or [IPv6]:PORT; host-only values use the legacy -p or configured fallback. Bare IPv6 is never split at its last colon. For server and manager, set the listening address. -p <server_port>-l <local_port>-k <password>-t <timeout>-m <encrypt_method>chacha20-ietf-poly1305.AEAD cipher names from the source (availability depends on the build):
aes-256-cfb, chacha20-ietf, rc4-md5 and the like) are no longer supported.The 2022-blake3-* ciphers implement Shadowsocks 2022 (SIP022). They require a base64-encoded pre-shared key supplied with --key or --password (-k): 16 bytes for 2022-blake3-aes-128-gcm and 32 bytes for the other 2022 ciphers. Generate a 32-byte key with openssl rand -base64 32. Passwords are not stretched into keys for these ciphers. -i <interface>-c <config_file>Refer to shadowsocks-c(8) CONFIG FILE section for more details.
-b <local_address>-a <user_name>-n <number>-S <path>-h-u-U-v-V-6-A--config <config_file>-c. --cipher <encrypt_method>-m for supported cipher names and key requirements. Short alias: -m. --timeout <timeout>-t; see that option for details. Short alias: -t. --user <user_name>-a; see that option for details. Short alias: -a. --pid-file <pid_file>-f; see that option for details. Short alias: -f. --nofile <number>-n; see that option for details. Short alias: -n. --udp-u. --udp-only-U. --ipv6-first-6. --verbose-v; see that option for details. Short alias: -v. --server <HOST:PORT>HOST:PORT for a hostname or IPv4, and [IPv6]:PORT for IPv6 (including scope when needed). Bare IPv6 is always a host, never split into a port. Host-only values require the legacy --server-port fallback or a configured port. An endpoint port takes priority over the fallback regardless of option order. SIP003 plugins require the same port for all endpoints. Short alias: -s. --server-port <server_port>--server HOST:PORT. Short alias: -p. --listen-address <local_address>-b. --listen-port <local_port>-l. --interface <interface>-i; see that option for details. Short alias: -i. --version--tcp-only--tcp-only, --udp, and --udp-only wins. --ipv4-firstipv6_first in the configuration file. This is an address preference, not a restriction to IPv4. The last of --ipv4-first and --ipv6-first wins. --vpn-V; see that option for details. Short alias: -V. --stat-path <path>-S; see that option for details. Short alias: -S. --reuse-port--tcp-incoming-sndbuf <size>--tcp-incoming-rcvbuf <size>--tcp-outgoing-sndbuf <size>--tcp-outgoing-rcvbuf <size>--fast-open--no-delay--max-connections <number>--max-udp-sessions <number>--max-dns-queries <number>--acl <acl_config>--mtu <MTU>--mptcpOnly available with MPTCP enabled Linux kernel.
--plugin <plugin_name>--plugin-opts <plugin_options>--password <password>--key <key_in_base64>--server-url <ss_url>ss:// URL, as produced by most clients and by shadowsocks-rust's ssurl. Both the SIP002 form (ss://base64(method:password)@host:port/?plugin=...#tag) and the older ss://base64(method:password@host:port) form are accepted. Options given later on the command line override the values taken from the URL. --printable-salt"printable_salt": true (ss-local only). Randomly choose 6-12 leading salt bytes and sample each as printable ASCII (0x20-0x7e). Requires chacha20-ietf-poly1305 or aes-256-gcm. Adds no framing bytes; leaves UDP and server responses unchanged. The 32-byte salt retains at least 238 bits of entropy. Salt uniqueness remains essential. This is not TLS impersonation or proven censorship resistance. --helpss-local(1) can be started from command line and run in foreground. Here is an example:
ss-server(1), ss-tunnel(1), ss-redir(1), ss-manager(1), shadowsocks-libev(8), iptables(8), /etc/shadowsocks-libev/config.json