|
shadowsocks-c 3.3.6
|
ss-server controller for multi-user management and traffic statistics
ss-manager [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-manager(1) is a controller for multi-user management and traffic statistics, using UNIX domain socket to talk with ss-server(1). Also, it provides a UNIX domain socket or IP based API for other software. About the details of this API, please refer to the following PROTOCOL section.
Options include all supported platform variants; restrictions are noted below.
-f <pid_file>-s <server_host>-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. -c <config_file>-i <interface>-d <addr>-a <user_name>-n <number>-D <path>-6-h-u-U-v-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. --listen-address <server_host>-s. --interface <interface>-i; see that option for details. Short alias: -i. --nameserver <addr>-d; see that option for details. Short alias: -d. --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. --fast-open--no-delay--reuse-port--acl <acl_config>--manager-address <address>--executable <path>--mtu <MTU>--plugin <plugin_name>--plugin-opts <plugin_options>--password <password>--workdir <path>--helpss-manager(1) provides several APIs through UDP protocol:
Send UDP commands in the following format to the manager-address provided to ss-manager(1):
To add a port:
To remove a port:
To receive the traffic statistics:
The format of the traffic statistics:
There is no way to reset the traffic statistics, unless you remove the port and add it again
To use ss-manager(1), First start it and specify necessary information.
Then communicate with ss-manager(1) through UNIX Domain Socket using UDP protocol:
After that, you may communicate with ss-manager(1) as described above in the PROTOCOL section.
ss-local(1), ss-server(1), ss-tunnel(1), ss-redir(1), shadowsocks-libev(8), iptables(8), /etc/shadowsocks-libev/config.json