SSR一键脚本分享

本脚本来源于teddysun的一键脚本

默认配置

  1. 默认加密为:chacha20
  2. 默认协议为:auth_sha1_v2
  3. 默认混淆为: tls1.2_ticket_auth

安装

一键脚本:

wget -N --no-check-certificate https://raw.githubusercontent.com/91yun/shadowsocks_install/master/shadowsocksR.sh && bash shadowsocksR.sh

本脚本安装完成后,已将 ShadowsocksR 自动加入开机自启动。

解卸方法

./shadowsocksR.sh uninstall

升级方法

cd /usr/local/shadowsocks/shadowsocks
git pull

命令

启动:/etc/init.d/shadowsocks start
停止:/etc/init.d/shadowsocks stop
重启:/etc/init.d/shadowsocks restart
状态:/etc/init.d/shadowsocks status

安装目录

配置文件路径:/etc/shadowsocks.json
日志文件路径:/var/log/shadowsocks.log
安装路径:/usr/local/shadowsocks/shadowsoks

多用户

如果要多个用户一起使用的话,请写入以下配置(vi /etc/shadowsocks.json):

多用户的核心是这个配置,把这个配置替代掉/etc/shadowsocks.json的相关密码的配置就行了:

{
    "server":"0.0.0.0",
    "server_ipv6": "[::]",
    "local_address":"127.0.0.1",
    "local_port":1080,
    "port_password":{
        "80":"password1",
        "443":"password2"
    },
    "timeout":300,
    "method":"aes-256-cfb",
    "protocol": "auth_sha1_compatible",
    "protocol_param": "",
    "obfs": "http_simple_compatible",
    "obfs_param": "",
    "redirect": "",
    "dns_ipv6": false,
    "fast_open": false,
    "workers": 1
}

客户端下载

windows客户端

https://github.com/shadowsocksr/shadowsocksr-csharp/releases

Android客户端

https://github.com/shadowsocks/shadowsocks-android/releases

OSX客户端

https://github.com/shadowsocks/shadowsocks-iOS/releases

IOS客户端

限于IOS封闭限制,请在apple商店下载替代品surge或者shadowrocket

原项目地址