Git Product home page Git Product logo

proxypool's Introduction

ProxyPool

ProxyPool是一个使用Go编写的透明MITM代理转发库,旨在将请求的流量通过GoProxy透明地转发到代理池上。

主要特性:

  • 透明的MITM代理转发:该库能够截获传入的请求流量,并将其转发到预定义的代理池上,实现透明的中间人攻击(Man-in-the-Middle)代理转发。
  • 支持HTTPS流量:该库能够处理HTTPS流量,并在转发过程中保持流量的加密性。
  • 灵活的配置选项:通过库提供的配置选项,你可以自定义获取代理地址、拉取代理间隔时间、代理过期时间、证书设置等,以满足不同的需求。
  • 高性能:该库经过优化,具有较高的性能和吞吐量,能够处理大量的并发请求。

安装

运行程序会在当前所在目录创建conf文件夹,首次运行会在文件夹内生成CA证书和配置文件,程序运行中将使用该证书。

配置模板

ProxyUrl: ""            //代理URL
ExpTime: 25             //代理过期时间
IntervalTime: 3         //拉取间隔
Auth:                   //是否鉴权
  UserName: ""          //鉴权用户名
  Password: ""          //鉴权密码
DetailLog: false        //输出详细日志
DetailLogRequest: false //输出请求的详细日志
MaxConnect: 1000        //最大并发数量 用来限制CPU占用
IsCertStore: true       //是否存储证书 用来控制内存占用

Docker

1. 创建文件夹
mkdir ProxyPool && cd ProxyPool
2. 运行Docker 镜像
docker run -d -p 9876:8080 --name ProxyPool \
    --restart always \
    -v $(pwd):/conf \
    ghcr.io/windfgg/proxypool/proxy-pool:latest
3.修改目录下的 config.yml 具体参数请参考配置模板
4.安装证书 (windos启动的代理池需要手动信任 ProxyPool.crt 证书)
sudo cp $(pwd)/ProxyPool.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates
//查看证书是否信任
openssl verify -CAfile /etc/ssl/certs/ca-certificates.crt ProxyPool.crt

二进制发布版

Releases页面

proxypool's People

Contributors

windfgg 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.