如何将shadowsocks转换为HTTP代理
source link: https://www.myfreax.com/convert-shadowsocks-into-an-http-proxy/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
如何将shadowsocks转换为HTTP代理
很多的软件都是仅支持http协议的代理,sock5协议的在软件方面支持还是比较少
如何将shadowsocks转换为HTTP代理
很多的软件都是仅支持http协议的代理,sock5协议的在软件方面支持还是比较少。而我们使用的fq工具最常用的就是shadowsocks。
shadowsocks是一个基于SOCKS5协议的代理工具。
因此将shadowsocks转换一个http代理还是非常的有必要,现在已有一个工具可以实现这个功能,它就是polipo。
在本教程中,我们将说明如何将shadowsocks的sock5协议代理转换HTTP协议的代理。如果你想拥有更快,但不安全的代理,Wireguard将是一个非常不错的选择。
Polipo是一个Web缓存代理,它支持从sock5协议中获取返回的数据,而且还支持其它类型的科学上网工具工具作为后端,并且可以缓存数据来加速网页打开速度。
如果你的计算机运行的是基于Debian的Linux发行版,例如Ubuntu,Linux mint。可以运行命令sudo apt-get install polipo -y
安装polipo。
如果你的计算机运行的是基于Redhat的Linux发行版,例如CentOS,Fedora。可以运行命令sudo yum install polipo -y
安装polipo。
当安装完成后,运行echo,tee,以及管道整合的命令修改配置文件/etc/polipo/config。
1080是shadowsocks默认使用端口,如你已更改shadowsocks的默认监听端口请自行更改1080为你使用的端口。然后运行service命令重启polipo服务。
最后运行curl命令验证polipo是否正常工作,运行curl命令http_proxy=http://localhost:8123 curl www.google.com
访问Google。
sudo apt-get install polipo -y
sudo yum install polipo -y
echo "socksParentProxy = localhost:1080" | sudo tee -a /etc/polipo/config
sudo service polipo restart
http_proxy=http://localhost:8123 curl www.google.com
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK