登录后台

页面导航

安装shadowsock服务端

使用远程终端连接到服务器运行如下命令,安装时会提示输入端口和密码,可修改

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

修改配置文件

配置文件在 /etc/shadowsock.json

单用户示例

{
"server":"0.0.0.0",
"server_port":8989,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"yourpassword",
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

多用户示例

{
"server":"0.0.0.0",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}

配置完成后修改防火墙,放通相应端口


服务端控制(起/停/重启)

启动/etc/init.d/shadowsocks start

停止/etc/init.d/shadowsocks stop

重启/etc/init.d/shadowsocks restart