jiqing112/hello

Linux使用ssr

jiqing112 opened this issue · 1 comments

需要本地git 环境

yum install -y git
git clone https://github.com/SAMZONG/gfwlist2privoxy.git
cd gfwlist2privoxy/
mv ssr /usr/local/bin
chmod +x /usr/local/bin/ssr

[root@localhost ~]# ssr install
Cloning into '/usr/local/share/shadowsocksr'...
remote: Counting objects: 5490, done.
remote: Total 5490 (delta 0), reused 0 (delta 0), pack-reused 5490
Receiving objects: 100% (5490/5490), 1.71 MiB | 410.00 KiB/s, done.
Resolving deltas: 100% (3799/3799), done.
[root@localhost ~]# ssr config # 配置文件路径 /usr/local/share/shadowsocksr/config.json
{
"server": "0..0.0.0", // ssr服务器ip
"server_ipv6": "::",
"server_port": 8080, // ssr服务器端口
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "123456", // 对应password
"method": "none", // 这里对应SSGlobal配置中的Encryption
"protocol": "auth_chain_a", //对应protocl
"protocol_param": "",
"obfs": "http_simple", //对应obfs
"obfs_param": "hello.world", //对应obfs_param
"speed_limit_per_con": 0,
"speed_limit_per_user": 0,
"additional_ports" : {}, // only works under multi-user mode
"additional_ports_only" : false, // only works under multi-user mode
"timeout": 120,
"udp_timeout": 60,
"dns_ipv6": false,
"connect_verbose_info": 0,
"redirect": "",
"fast_open": false
}

ssr start
ssr stop

以上,本地监听服务已经配置完成了,在填写的过程中,要注意你的本地监听地址和监听端口,默认是127.0.0.1:1080,如果你修改了设置,那么在后续配置中也要配合修改。

{
"server": "108.160.131.58",
"server_ipv6": "::",
"server_port": 12345,
"local_address": "127.0.0.1",
"local_port": 1080,

"password": "yanzhiling123",
"method": "aes-256-cfb",
"protocol": "auth_sha1_v4",
"protocol_param": "",
"obfs": "http_simple",
"obfs_param": "",
"speed_limit_per_con": 0,
"speed_limit_per_user": 0,

"additional_ports" : {}, // only works under multi-user mode
"additional_ports_only" : false, // only works under multi-user mode
"timeout": 120,
"udp_timeout": 60,
"dns_ipv6": false,
"connect_verbose_info": 0,
"redirect": "",
"fast_open": false

}