Home / 服务器 / glider工具多种协议正向代理,做成http/socks代理池
glider 是一个支持多种协议的正向代理,可以将本地侦听器设置为代理服务器,并通过转发器将请求转发到互联网。
可以利用这个工具,将多种代理协议代理,然后监听端口,服务器轮询通过代理访问互联网。
相当于聚合起来,做个http/socks代理池
|Forwarder ----------------->|
Listener --> | |
|Forwarder --> Forwarder->...|
|v2ray forward ...|
|http forward ...|
|trojan forward ...|
|ws forward ...| Internet
|vless forward ...|
|socks5 forward ...|
|ssh forward ...|
|ss forward ...|
|ssr forward ...|
| 轮询以上代理 |
github: https://github.com/nadoo/glider
配置文件例子
# Verbose mode, print logs
verbose=True
listen=:8443
# first connect forwarder1 then forwarder2 then internet
forward=http://192.168.0.50:3128
forward=http://192.168.0.51:3128
forward=http://192.168.0.52:3128
forward=http://192.168.0.53:3128
forward=http://192.168.0.54:3128
forward=http://192.168.0.55:3128
forward=http://192.168.0.56:3128
forward=http://192.168.0.57:3128
forward=http://192.168.0.58:3128
forward=http://192.168.0.59:3128
forward=http://192.168.0.60:3128
forward=http://192.168.0.61:3128
forward=http://192.168.0.62:3128
forward=http://192.168.0.63:3128
forward=http://192.168.0.64:3128
forward=ws://154.11.11.2:8880/path?host=xxx.com,vmess://a96dd119-8eb0-4285-ad82-513a681ad460@?alterID=0
# Round Robin mode: rr
# High Availability mode: ha
strategy=rr
# forwarder health check
check=http://www.msftconnecttest.com/connecttest.txt#expect=200
# check interval(seconds)
checkinterval=30