百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

docker-rotating-proxy

> DevOps
开源

使用 Docker 创建您的旋转代理服务器。自主托管的旋转代理服务。

180 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

使用 Docker 创建您的旋转代理服务器。自主托管的旋转代理服务。

Docker Rotating Proxy Config Generator

  • Fully Optimized for Web Scraping Usage.
  • HTTP/HTTPS Support (see wiki)
  • socks5 with Authorization Proxy to HTTP(S) proxy convert compatible by Gost
  • You can use a VPN as an HTTP proxy.(powered by gluetun )
  • Making it IP address based authentication makes it easier to use in your program.(selenium,puppeteer etc)
               Docker Container
               ----------------------------------
Client   Squid   HTTP/HTTPS Rotate Proxies---\ 
                       |
        ---------------|-> Gost  Socks5 Proxy    --- Internet
                       |
        -------------- VPN to HTTP Proxy  use Squid
2.Control the proxy programmatically -> use Gost Port

Usage Example

Configuring IPs to allow the use of the Rotating Proxy

If you want to use it from outside, please specify the your IP address to allowed_ip.txt

http://httpbin.org/ip

Example:

93.184.216.34
108.62.57.53

1. Create your proxyList.txt(If HTTP/Socks is provided)

Search FreeProxy List or Paid/Subscribe ProxyService Provider.

example : https://github.com/clarketm/proxy-list

Format

IPAddress:Port:Type(socks5 or http or https or httpsquid):Username:Password
IPAddress:Port:Type(socks5 or http or https or httpsquid)
IPAddress:Port

1.1 Create Your OpenVPN Config(If HTTP/Socks is NOT provided)

see example

Format

openvpn/{name}
openvpn/{name}/{name2}.ovpn
openvpn/{name}/secret

2. Generate docker-compose.yml

bash
git clone https://github.com/39ff/docker-rotating-proxy
cd docker-rotating-proxy && cd setup
docker run --rm -it -v "$(pwd):/app" composer install
cd ..
# If you don't want to set up OpenVPN, please remove it.
rm -rf ./openvpn/*
docker run --rm -it -v "$(pwd):/app/" php:7.4-cli php /app/setup/generate.php
cat docker-compose.yml
docker-compose up -d
curl https://httpbin.org/ip --proxy http://127.0.0.1:3128

How to it works?

  • Sometimes you may need the same IP address for a series of steps. To deal with this problem, we have built a new relay server via gost.

  • Most open proxies will be unavailable in a few days. Therefore, it is useless to build a server for every open proxy, so we use squid's cache_peer to rotate a large number of open proxies.

proxyList.txt Example1

127.0.0.1:1080:socks5:yourUsername:yourPassword
127.0.0.1:44129:httpsquid:mysquidproxy:mysquidpassword
127.0.0.1:29128:httpsquid:rotatingserviceUsername:password
169.254.0.1:1080:socks5:paidsocksUsername:paidsocksPassword
127.0.0.1:80
172.31.22.222:8080

proxyList.txt Example2

Here are some practical examples.

using NordVPN,TorGuard,Luminati

89.187.161.86:80:httpsquid:[email protected]:NordVPNPassword
173.254.222.146:1080:socks5:yourTorGuardUsername:Password
zproxy.lum-superproxy.io:22225:httpsquid:yourLuminatiUsername:Password

Generated docker-compose.yml example

…

Now try it out

…

Warning

By default, ports can be used without authentication. Some VPSs that are directly exposed globally may require appropriate modifications to the docker-compose.

Example of using a large number of public proxies with real-time updates

see public_proxy_cron.sh

0 * * * * /your_sh_path_here/public_proxy_cron.sh

TODO

  • Username/Password Auth for Enterprise

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

PHPanonymousdockerhttp-proxyhttps-proxy

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理