Coder Social home page Coder Social logo

hidu / proxy-manager Goto Github PK

View Code? Open in Web Editor NEW
128.0 18.0 43.0 416 KB

manager http、socks4、socks4a、socks5、shadowsocks

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

License: MIT License

Shell 2.26% Go 47.95% CSS 40.07% HTML 8.71% Batchfile 0.09% PHP 0.91%

proxy-manager's Introduction

proxy-manager

v0.3.0

概述

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

安装

使用源码安装

需要安装Go

go install github.com/hidu/proxy-manager@master

配置

初始化配置

proxy-manager -init

配置文件

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

运行

proxy-manager

or

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

使用流程

假设服务监听地址为:127.0.0.1:8128

As Proxy Server

支持访问 http URL,暂不支持 https URL。

curl -x http://$name:[email protected]:8128 'http://hidu.github.io/hello.md'

As Gateway Server

支持访问 http 和 https URL 。

# 发送 GET 请求
curl 'http://$name:[email protected]:8128/query?url=https://hidu.github.io/hello.md

# 发送 POST 请求,并且有设置自定义 Header 以及 Body 
curl 'http://$name:$psw@127.0.0.1:8128/query?method=POST&url=https://hidu.github.io/hello.md&headers={"a":["a"]}' \
  -X POST --data "request body"

获取一个 Proxy

 curl 'http://$name:[email protected]:8128/fetch'

成功的 Response:

{
    "ErrNo": 0,
    "Proxy": "http://127.0.0.1:8101"
}

外部接口

添加代理接口

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

bryant1410 avatar hidu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

proxy-manager's Issues

https support possible?

Is it possible to add https support, i ABSOLUTELY need to have it, there is no other open source program that does proxy managment as good as this one. let me know quick. even if i have to add it my self it is fine. just need to know how.

Is a good idea to disable keep alive?

I ran into many fails because of too many invalid idle connections, is it a good idea to disable keep alive? For my case when I disable keep-alive fails reduce a lot.

admin password ? login failed

admin psw
abc abc

login failed

很好的软件...

后台无法登录,,试了几个密码都不行, 版本 是 0.21 最新的 0.22 在那里下载..谢谢了.

Current Version: 0.2.1

last version: 0.2.2

can not install

detail:

root@default:~# go get -u github.com/hidu/proxy-manager
# github.com/hidu/proxy-manager/manager
go/src/github.com/hidu/proxy-manager/manager/client.go:74: client.Timeout undefined (type *http.Client has no field or method Timeout)
go/src/github.com/hidu/proxy-manager/manager/proxyPool.go:368: client.Timeout undefined (type *http.Client has no field or method Timeout)

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.