Server:
Install shadowsocks; both the server and the client need to have it installed
sudo apt-get install python-gevent python-pip
sudo pip install shadowsocks
Create a shadow.json with the following contents:
{
"server":"0.0.0.0",
"server_port":8388,
"local_port":10808,
"password":"The password should be the same as the client configuration",
"timeout":600,
"method":"aes-256-cfb"
}
Start the server:
ssserver -c shadow.json
The client’s shadow.json contents:
{
"server":"Server IP address",
"server_port":8388,
"local_port":10808,
"password":"The password should be the same as the server configuration",
"timeout":600,
"method":"aes-256-cfb"
}
Client startup command
sslocal -c shadow.json
This creates a socks5 proxy on local port 10808
Run the server in the background
nohup ssserver -c shadow.json> log &
View background jobs: jobs
Stop it: fg %n
Start automatically on boot:
cd /etc/
sudo vim rc.local
Add a line:
/usr/local/bin/ssserver -c fullpath/shadow.json