Linux系统shadowsocks部署

0. 安装shadowsocks

pip install shadowsocks

1. 配置shadowsocks

cat > /etc/shadowsocks.json << EOF
{
"server":"0.0.0.0",
"local_address": "127.0.0.1",
"local_port":1080,
"port_password":{
     "8381": "passwd",
     "8382": "1a2s3d4f1"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
EOF

2. 后台启动程序

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

3. 配置开机自启

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

shadowsocks.jpg