linux安装ss客户端与kcp并开启全局代理
1.安装ss客户端和kcp客户端
- kcp客户端:https://github.com/xtaci/kcptun/releases 选择对应版本下载即可
- shadowsocks客户端linux版本:https://github.com/shadowsocks/shadowsocks-rust/releases 选择对应版本
2.修改配置启动kcp与ss客户端
2.1 配置
- 创建kcp.json, 主要配置远程vps服务地址以及本地端口如:
:10080
- 创建ss.json, 配置服务地址为kcp配置的本地端口,本地端口设置如:
10088
2.2 启动
1 | kcp-client -c kcp.json |
3.开启全局代理
1 | export ALL_PROXY="socks5://代理服务器IP地址:代理端口" # 开启sock代理 |
4.使用polipo将socks代理转为http代理
1 | apt install polipo |
开启代理:
1 | export HTTP_PROXY=http://xxxx:xxx |
5.开启代理后python使用requets报错
错误信息:ValueError: check_hostname requires server_hostname
解决方式:降低urllib3版本至1.25.8