据说可以代理UDP和支持ipv6,如果SS搭建出了问题或者不能连接,可以试试这个。
一键脚本-自动加入开机自启动。
- 安装方法:
wget http://t.for-get.com/SSR/SSR && bash SSR
如果出错提示 :
wget not found
请先执行:
yum install -y wget
- 卸载方法:
使用 root 用户登录,运行以下命令:
wget http://t.for-get.com/SSR/SSR && bash SSR uninstall
- 升级方法(代码在git上面,那边更新了可以用这个命令同步服务器):
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
- 完整的多用户配置(/etc/shadowsocks.json)如下:
{
“server“:“0.0.0.0“,
“server_ipv6“: “[::]“,
“local_address“:“127.0.0.1“,
“local_port“:1081,
“port_password“:{
“80“:“password1“,
“443“:“password2“
},
“timeout“:300,
“method“:“aes-256-cfb“,
“protocol“: “auth_aes128_md5“,
“protocol_param“: ““,
“obfs“: “tls1.2_ticket_auth_compatible“,
“obfs_param“: ““,
“redirect“: ““,
“dns_ipv6“: false,
“fast_open“: false,
“workers“: 1
}
注意!
如果所有客户端都无法连接,请检查防火墙(iptables 或 firewalld)和安全组中是否开放端口。
附:
- 可选13种加密方式(method):
none
aes-256-cfb
aes-192-cfb
aes-128-cfb
aes-256-cfb8
aes-192-cfb8
aes-128-cfb8
aes-256-ctr
aes-192-ctr
aes-128-ctr
chacha20-ietf
chacha20
rc4-md5
rc4-md5-6
- 可选7种协议(protocol):
origin
verify_deflate
auth_sha1_v4
auth_sha1_v4_compatible
auth_aes128_md5
auth_aes128_sha1
auth_chain_a
auth_chain_b
- 可选8种混淆(obfx):
plain
http_simple
http_simple_compatible
http_post
http_post_compatible
tls1.2_ticket_auth
tls1.2_ticket_auth_compatible
tls1.2_ticket_fastauth
tls1.2_ticket_fastauth_compatible
