安装

1
2
sudo apt-get install python-pip
sudo pip install shadowsocks

配置

新建一个json文件,如 ~/shadowsocks.json,内容如下

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"server": "0.0.0.0",
"port_password": {
"端口1": "密码1",
"端口2": "密码2",
"端口3": "密码3"
},
"local_address": "127.0.0.1",
"local_port": 1080,
"timeout": 300,
"method": "aes-256-cfb",
"fast_open": false
}

后台运行

1
sudo ssserver -c ~/shadowsocks.json -d start