On this page
From the app, in a few minutes
- 1
Rent a VPS
The cheapest plan with Linux will do: Ubuntu, Debian, Fedora, CentOS, Rocky, AlmaLinux or Arch Linux. After payment the host sends you an IP address, the root login and a password.
- 2
Add the server
Profiles → Add → “Your own server”. Type the address and password — user root and port 22 are already set. Click “Add the server”.
- 3
Select Shadowsocks
On the server screen choose Shadowsocks — the install button changes — and click it. The app sets up the server by itself, and this computer's profile appears on its own.
- 4
Hand out keys
Type a device name, such as “Phone”, and click “Add a device”: a QR code and a link open. Every device has its own key — you can delete it without affecting the others.
By hand with shadowsocks-rust
- 1
Install ssserver
shadowsocks-rust is a modern Shadowsocks server program. Ready builds are under Releases in the shadowsocks/shadowsocks-rust project on GitHub: take the Linux archive for the server's processor (x86_64 or aarch64) and unpack
ssserverinto/usr/local/bin. - 2
Make a key
For the Shadowsocks 2022 ciphers the password is a base64 key of the right length: 32 bytes for
2022-blake3-aes-256-gcm, 16 for2022-blake3-aes-128-gcm.openssl rand -base64 32makes one. For the classic ciphers any long random password will do. - 3
Write config.json
For example
/etc/shadowsocks-rust/config.json— a JSON object with server (0.0.0.0),server_port(8388, say), method (the cipher) and password (the key). A mode field set totcp_and_udpturns on UDP too. - 4
Start the server
The command is
ssserver -c /etc/shadowsocks-rust/config.json. To have the server come back after a reboot, create a systemd service for this command that restarts on failure. - 5
Open the port
The port from
server_port— over both TCP and UDP: in the server's firewall (with ufw,ufw allow 8388) and in your host's control-panel firewall, if it has one.
Which cipher to choose
2022-blake3-aes-256-gcmor2022-blake3-aes-128-gcm— the Shadowsocks 2022 ciphers. They protect against replayed packets, and their key is random bytes, not a password. Use them if all your clients understand them.chacha20-ietf-poly1305— the classic AEAD cipher that almost any client understands, old ones included. Fast on phones and on processors without AES acceleration.aes-256-gcmandaes-128-gcm— AEAD too, fast on processors with AES acceleration, which means almost any server and computer.- Old stream ciphers —
rc4-md5,aes-256-cfb, chacha20 without ietf-poly1305 and the like — avoid them: they are insecure, and new clients no longer understand them.
The ss:// key and Outline
A Shadowsocks key is an ss:// link: cipher, password, server address and port in one line. In the classic form the cipher and password, joined by a colon, are base64-encoded: ss://base64(cipher:password)@address:port#name. An example for chacha20-ietf-poly1305:
ss://Y2hhY2hhMjAtaWV0Zi1wb2x5MTMwNTpLZDgzaFF4MlZiN21acA@203.0.113.5:8388#my-ssThe 2022 ciphers need no base64: the cipher and key are written as they are, joined by a colon, and the key's +, / and = characters are encoded as in web addresses — %2B, %2F and %3D. After the # comes the name the client shows in its list.
Outline is the same Shadowsocks with a program for handing out keys. Outline Manager shows a command you run on the server: it installs Docker and the Outline server. You then issue keys from the Manager — ordinary ss:// keys. ssconf:// keys are dynamic: services built on Outline hand them out, and with such a link the client downloads the current settings by itself.