Coder Social home page Coder Social logo

wall-eeeeeee / proxy-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hidu/proxy-manager

0.0 1.0 0.0 323 KB

manager http、socks4、socks4a、socks5、shadowsocks

Home Page: http://hidu.github.io/proxy_man/

License: MIT License

Shell 1.88% Go 58.22% CSS 33.34% HTML 6.48% Batchfile 0.07%

proxy-manager's Introduction

proxy-manager

v0.2.3

概述

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

安装

使用源码安装

需要安装golang

export GO15VENDOREXPERIMENT=1
go get -u github.com/hidu/proxy-manager

下载二进制文件

网盘下载:windows、linux、darwin版本

配置

初始化配置

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:8128  
                        |  
                        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                              +  
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  

外部接口

添加代理接口

curl 命令示例:
curl --data "user_name=admin&psw_md5=7bb483729b5a8e26f73e1831cde5b842&proxy=http://10.0.1.9:3128" http://127.0.0.1:8128/add

服务状态接口

http://127.0.0.1:8128/status

proxy-manager's People

Contributors

hidu avatar bryant1410 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.