Ubuntu18.04安装ssr


#1

1.环境安装

sudo apt-get install git

2.获取ssr

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

3.安装ssr

ssr install

4.配置ssr

ssr config
{
“server”: “0.0.0.0”, //服务器IP
“server_ipv6”: “::”,
“server_port”: 8388, //端口
“local_address”: “127.0.0.1”,
“local_port”: 1080,

"password": "m",    //密码
"method": "aes-128-ctr",    
"protocol": "auth_aes128_md5",    
"protocol_param": "",
"obfs": "tls1.2_ticket_auth_compatible",
"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

}

//编辑完成后
ESC

//保存退出
:wq

5.启动ssr

ssr start

6.关闭ssr

ssr stop

7.安装配置代理

apt-get install privoxy

// 添加本地ssr服务到配置文件
echo ‘forward-socks5 / 127.0.0.1:1080 .’ >> /etc/privoxy/config

// Privoxy 默认监听端口是是8118
export http_proxy=http://127.0.0.1:8118
export https_proxy=http://127.0.0.1:8118
export no_proxy=localhost

// 启动服务
systemctl start privoxy.service

这样就完成了ssr安装配置。


#2

:grinning::rose::rose::rose::rose::rose: