博客更新主题啦!欢迎和大家相互探讨! E-mail:yanchao@yan-chao.com

搬瓦工VPS shadowsocks多用户端口配置

Shadowsocks 1660℃ 0评论

使用方法:
使用root用户登录,运行以下命令:

wget --no-check-certificate https://bandwagong.b0.upaiyun.com/uploads/ss.sh
chmod +x ss.sh
./ss.sh 2>&1 | tee shadowsocks.log

安装完成后,脚本提示如下:

Congratulations, shadowsocks install completed!
Your Server IP:your_server_ip
Your Server Port:443
Your Password:your_password
Your Local IP:127.0.0.1
Your Local Port:1080
Your Encryption Method:aes-256-cfb

Welcome to visit:http://www.bandwagong.com/
Enjoy it!


卸载方法:
使用root用户登录,运行以下命令:

./ss.sh uninstall

单用户配置文件sample
配置文件路径:/etc/shadowsocks.json

{
    "server":"your_server_ip",
    "server_port":443,
    "local_address":"127.0.0.1",
    "local_port":1080,
    "password":"yourpassword",
    "timeout":300,
    "method":"aes-256-cfb",
    "fast_open": false
}
多用户多端口配置文件 sample
配置文件路径:/etc/shadowsocks.json

{
    "server":"your_server_ip",
    "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
状态:/etc/init.d/shadowsocks status

转载请注明:闫超博客 » 搬瓦工VPS shadowsocks多用户端口配置

喜欢 (0)or分享 (0)
发表我的评论
取消评论
表情