Linux系统shadowsocks部署


0, 安装shadowsocks

1
pip install https://github.com/shadowsocks/shadowsocks/archive/master.zip -U

1, 配置shadowsocks

1
2
3
4
5
6
7
8
9
10
11
12
13
cat > /etc/shadowsocks.json << EOF
{
"server":"0.0.0.0",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password":{
"8381": "passwd"
},
"timeout":300,
"method":"aes-256-gcm",
"fast_open": false
}
EOF

2, 后台启动程序

1
ssserver -c /etc/shadowsocks.json -d start

3, 配置开机自启

1
2
echo "ssserver -c /etc/shadowsocks.json -d start" >> /etc/rc.local
chmod +x /etc/rc.local

shadowsocks.jpg