关于本脚本
1、一键安装 Shadowsocks-Python, ShadowsocksR, Shadowsocks-Go, Shadowsocks-libev 版(四选一)服务端;
2、各版本的启动脚本及配置文件名不再重合;
3、每次运行可安装一种版本;
4、支持以多次运行来安装多个版本,且各个版本可以共存(注意端口号需设成不同);
5、若已安装多个版本,则卸载时也需多次运行(每次卸载一种);
友情提示:如果你有问题,请先阅读这篇《Shadowsocks Troubleshooting》之后再询问。
默认配置
服务器端口:自己设定(如不设定,默认从 9000-19999 之间随机生成)
密码:自己设定(如不设定,默认为 teddysun.com 我的是3**3**@ssr)
加密方式:自己设定(如不设定,Python 和 libev 版默认为 aes-256-gcm,R 和 Go 版默认为 aes-256-cfb)
协议(protocol):自己设定(如不设定,默认为 origin)(仅限 ShadowsocksR 版)
混淆(obfs):自己设定(如不设定,默认为 plain,我选http_simple)(仅限 ShadowsocksR 版)
备注:脚本默认创建单用户配置文件,如需配置多用户,请手动修改相应的配置文件后重启即可。
Please select protocol for ShadowsocksR: 1) origin 2) verify_deflate 3) auth_sha1_v4 4) auth_sha1_v4_compatible 5) auth_aes128_md5 6) auth_aes128_sha1 7) auth_chain_a 8) auth_chain_b 9) auth_chain_c 10) auth_chain_d 11) auth_chain_e 12) auth_chain_f Which protocol you'd select(Default: origin): protocol = origin Please select obfs for ShadowsocksR: 1) plain 2) http_simple 3) http_simple_compatible 4) http_post 5) http_post_compatible 6) tls1.2_ticket_auth 7) tls1.2_ticket_auth_compatible 8) tls1.2_ticket_fastauth 9) tls1.2_ticket_fastauth_compatible Which obfs you'd select(Default: plain):
Starting ShadowsocksR success Congratulations, ShadowsocksR server install completed! Your Server IP : 8.8.8.8 Your Server Port : 6192 Your Password : 3**3**@ssr Your Protocol : origin Your obfs : http_simple Your Encryption Method: aes-256-cfb Your QR Code: (For ShadowsocksR Windows, Android clients only) ssr://NDcuODguNDkuOTE6NjI0MDpvcmlnaW46Y7ejjdHDNsHR0cF9zaW1wbGU6TXprNU16azJRSE56Y2cvP29iZnNwYXJhbT0= Your QR Code has been saved as a PNG file path: /root/shadowsocks_r_qr.png Welcome to visit: https://teddysun.com/486.html Enjoy it!
各版本默认配置文件
Shadowsocks-Python 版:
/etc/shadowsocks-python/config.json
ShadowsocksR 版:
/etc/shadowsocks-r/config.json (在配置文件里面我使用的端口需要确认防火墙,而且是“所有的”防火墙都要放行,“所有的”包括VPS服务商的,和VPS下自己加装的pfSense防火墙,或者服务端面板(宝塔,C-panel),同时也包括客户端内网的防火墙,别问我怎么知道的(-_-!)
Shadowsocks-Go 版:
/etc/shadowsocks-go/config.json
Shadowsocks-libev 版:
/etc/shadowsocks-libev/config.json