On this page
On this page
Shadowsocks Rust Setup for Debian
Repo: https://github.com/shadowsocks/shadowsocks-rust
Setup rust first: Rust Environment Setup for Debian
Install
rustup default nightlycargo install shadowsocks-rust
Configure
mkdir ss
Server config sample:
{"servers": [{"address": "::","port": 9982,"method": "chacha20-ietf-poly1305","password": "strong-password","mode": "tcp_and_udp","fast_open": false,"timeout": 7200}]}
Add as a system service
sudo vim /etc/systemd/system/ss.service
Note: Change
username
to your own username
[Unit]Description=ssserver serviceAfter=network.target[Service]ExecStart=/home/username/.cargo/bin/ssserver -c /home/username/ss/config.jsonExecStop=/usr/bin/killall ssserverRestart=on-failureStandardOutput=syslog # Output to syslogStandardError=syslog # Output to syslogSyslogIdentifier=ssUser=usernameGroup=admin[Install]WantedBy=multi-user.target
sudo systemctl daemon-reloadsudo systemctl enable --now ss
Run
Status
sudo systemctl status ss
Stop
sudo systemctl stop ss
Update
cargo install shadowsocks-rust
Edit this page
Last updated on 9/2/2021