Skip to content

eromoe/proxy-manager

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-manager

##概述

  1. 统一管理 http、socks4、socks4a、socks5、shadowsocks 代理
  2. 自动检查代理是否可用
  3. 对外统一提供http代理服务
  4. 对外代理服务支持http basic认证

##安装 需要安装golang

go get -u github.com/hidu/proxy-manager

##配置 ###初始化配置

proxy-manager -init_conf ./conf/

###配置文件

文件名 说明
proxy.conf 主配置文件
pool.conf 代理池,每行配置一个代理,每次启动都会加载检查
pool_checked.list 程序生成,当前检查可用的代理结果
pool_bad.list 程序生成,不可用的代理列表

##运行

proxy-manager -conf ./conf/proxy.conf

##流程图 用使用代理来访问 http://www.baidu.com/ 来做示例:


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
+ client (want visit http://www.baidu.com/)              +  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
                        |  
                        |  via proxy 127.0.0.1:8090  
                        |  
                        V  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
+                       +         proxy pool             +  
+ proxy manager listen  ++++++++++++++++++++++++++++++++++  
+ on (127.0.0.1:8090)   +  http_proxy1,http_proxy2,      +  
+                       +  socks5_proxy1,socks5_proxy2   +  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
                        |  
                        |  choose one proxy visit 
                        |  www.baidu.com  
                        |  
                        V  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  
+        site:www.baidu.com                              +  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  

About

manager http、socks4、socks4a、socks5、shadowsocks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 54.2%
  • CSS 35.5%
  • HTML 6.9%
  • Shell 2.5%
  • Other 0.9%