|
shadowsocks-c 3.3.6
|
shadowsocks tools for local port forwarding, C implementation
ss-tunnel [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-tunnel(1) is a tool for local port forwarding. See OPTIONS section for special option needed by ss-tunnel(1). 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>-L <addr:port>-a <user_name>-n <number>-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. --destination <addr:port>-L. --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. --fast-open--mtu <MTU>--no-delay--max-connections <number>--max-udp-sessions <number>--mptcpOnly available with MPTCP enabled Linux kernel.
--plugin <plugin_name>--plugin-opts <plugin_options>--reuse-port--tcp-incoming-sndbuf <size>--tcp-incoming-rcvbuf <size>--tcp-outgoing-sndbuf <size>--tcp-outgoing-rcvbuf <size>--password <password>--key <key_in_base64>--helpss-tunnel(1) can be used to forward DNS queries to a remote DNS server through the shadowsocks tunnel. Here is an example:
ss-local(1), ss-server(1), ss-redir(1), ss-manager(1), shadowsocks-libev(8), iptables(8), /etc/shadowsocks-libev/config.json