Ubuntu18.04安装ssr

https://www.cnblogs.com/mickssr/p/10135655.html

1.环境安装

sudo apt-get install git

2.获取ssr

git clone GitHub - samzong/gfwlist2privoxy: gfwlist2privoxy shell脚本,自动转换为privoxy的格式
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安装配置。

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

1 个赞

ubuntu 20.04 安装之后 shadowsocksr 目录下没有 start 文件…