Skip to content

About

DEPRECATED — superseded by proxy-pool-collection-go. Python implementation: unified dashboard and service architecture for self-hosted proxy pools (no credentials)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

67 Commits

Folders and files

Repository files navigation

🗂 proxy-pool-collection

Five self-hosted proxy pools, one URL. proxy-pool-collection wraps five existing, separate services — foxyvpn-pool, urn-pool, windscribe-pool, a first-party shared-mihomo VPNGate pool, and a Rayobyte quota pool — behind one Go reverse proxy and one web page: a left sidebar switches pools with no page reload, and each pool keeps its own dashboard (unchanged UI) inside the same tab.

Proxy Pool Collection — Windscribe tab: one card per client with rotate, quota and node health; identifiers masked.

Live deployment screenshot, identifiers masked (host, tailnet IP, port, node addresses, client uids and the unauthenticated dashboard alias). OCR-verified: zero hits for any sensitive regex.

Design borrowed from the upstream pools — same left-sidebar UI_HTML card pattern, same const BASE = location.pathname relative-URL mounting trick — extended with a first-party reverse proxy and a first-party VPNGate dashboard.

Unofficial community software. Not affiliated with or endorsed by Mozilla, URnetwork, Windscribe, or VPNGate. Only use it with accounts and subscriptions you are authorized to use, in accordance with each provider's terms of service.

✨ Highlights

  • 🖥 One page, five pools — FoxyVPN, URnetwork, Windscribe, VPNGate and Rayobyte behind a single URL with a left sidebar; each tab is its own dashboard, byte-identical upstream where a UI_HTML exists
  • 🔁 VPNGate is a first-party pool, not scraped wrappers — mihomo mixed listeners, ppc register (/register /rotate /node /status), a provider generator filtering the official VPNGate node lists, an official-only hub and a public-source speed daemon
  • 🎛 The VPNGate tab matches the others — card-per-client, port + current node, alive badge, and one Rotate button; no quota row, because VPNGate has no per-account quota
  • 🛡 Hardened unified view — fixed upstreams (no urljoin, no open relay), SSRF-traversal rejection, header allowlist, Host check, no server-side 3xx follow, same-origin Location rewritten under the prefix, loopback by default
  • 🧾 No credentials in the repo — every live value lives in *.example files and a gitignored runtime set; the brand claim is service architecture only
  • ⚡ One static binary — ppc runs the shell and every pool role (foxy, urn, ws, register, gen-provider, vpngate-hub, vpngate-speed, webui); no Python runtime is needed for the pool roles
  • 🐳 One-command demo — docker compose up runs the same static binary against a mock upstream

🤔 Why wrap pools this way?

Five pools solve five different problems; the three vendored upstreams each already ship a good dashboard. What's missing is the **one-URL switchboard** and a reproducible, credential-free repository describing them all.

Concern Separate dashboards Proxy Pool Collection
One status page Visit 3–5 URLs, remember 5 tokens One page, one URL, five sidebar tabs
Fresh clone reproduces Five separate services, differing deploy docs One clone, all five pools versioned together
VPNGate dashboard None upstream (first-party only) Card dashboard with Rotate, matches the family
Credentials in repo Each pool's README says "bring your own" Every live value externalized; a scanner proves it
Upstream updates Pull four repos, reconcile four layouts Subtrees pinned to SHAs; update one at a time

The 3 vendored upstreams ship their own UI_HTML; this repo mounts them under a path prefix and proxies everything the relative-URL dashboard needs. The VPNGate and Rayobyte dashboards are first-party, in the same house style.

🧠 How it works

flowchart LR
  B[Browser · one URL] --> S[ppc webui · Go reverse proxy]
  S -->|/p/foxy/*| F[foxyvpn-pool · byte relay · :8080]
  S -->|/p/urn/*| U[urn-pool · seedphrase pool · :8090]
  S -->|/p/ws/*| W[windscribe-pool · OpenVPN tunnels · :8094]
  S -->|/p/vg/* static| V[VPNGate ui.html · cards + Rotate]
  V -->|/p/vg/api/*| R[ppc register :8095]
  S -->|/p/ray/* static| Y[Rayobyte ui.html · read-only cards]
  Y -->|/p/ray/api/*| RP[external raypool API :8096]
  R --> C[mihomo external-controller :7910]
  H[ppc vpngate-hub · official sources] --> J[(publish/hub-nodes.json)]
  J --> G[ppc gen-provider · clean filter]
  G --> P[providers/hub-nodes.yaml]
  P --> C
  D[ppc vpngate-speed · public sources] --> J
Loading

Two layers, both self-contained:

  1. Control planes — each pool is a small stdlib service that turns a shared account/token pool into per-client SOCKS5 exits (byte-relay swap, quota self-management, stable ports).
  2. Unified view — a reverse proxy serving five tabs; the VPNGate pool exposes no quota concept, so its cards show exit node + a single Rotate button (≈ urn-pool's "rotate, no picker" UX); the Rayobyte tab is read-only.

🦊 FoxyVPN / 🌀 URnetwork / 🐋 Windscribe / 🌐 VPNGate / 🛰️ Rayobyte

Tab Source UI
🦊 FoxyVPN pools/foxyvpn-pool/ (subtree, pinned) upstream embedded UI_HTML
🌀 URnetwork pools/urn-pool/ (subtree, pinned) upstream embedded UI_HTML
🐋 Windscribe pools/windscribe-pool/ (subtree, pinned) upstream embedded UI_HTML
🌐 VPNGate shared-mihomo/ (first-party) shared-mihomo/webui/ui.html
🛰️ Rayobyte host ray-pool (external API) webui/ray.html (first-party, read-only)

The upstream pools stay vendored byte-identical as git subtrees pinned to SHAs; their Python code is the reference, and the running implementation is the Go roles in internal/. The rewind point for every upstream update is one subtree; the byte-identical diff is the safety net.

The VPNGate/shared-mihomo half is first-party: HTTP API (ppc register), mihomo config + provider generator, official-only hub (ppc vpngate-hub), public-source speed daemon (ppc vpngate-speed), and the Rotate dashboard.

🚀 Install

Bare metal

Needs Go 1.24+ to build; the result is one static binary.

git clone https://github.com/anton1615/proxy-pool-collection.git
cd proxy-pool-collection
CGO_ENABLED=0 go build -trimpath -o dist/ppc ./cmd/ppc
cp webui/config.example.json webui/config.json
# edit webui/config.json: each pool's upstream base URL + tab path + listen/port
go test ./...
./dist/ppc webui

Each pool role is the same binary: ppc foxy, ppc urn, ppc ws, ppc urn-hub, ppc urn-speed, ppc vpngate-hub, ppc vpngate-speed, ppc register, and ppc gen-provider. The shipped unit examples use /usr/local/bin/ppc.

Open the printed URL (default http://127.0.0.1:8787/). The shell always works: a tab whose upstream is down shows a clean error panel; the other tabs keep working. Binding a tailnet address is an explicit opt-in in config.json (listen), and is not automatic — the shell is an unauthenticated reverse proxy and its trust boundary is the network it binds.

One-command demo (Docker Compose)

Needs Docker Engine with the Compose plugin and one local build step:

git clone https://github.com/anton1615/proxy-pool-collection.git
cd proxy-pool-collection
CGO_ENABLED=0 go build -trimpath -o dist/ppc ./cmd/ppc
docker compose up

Open http://127.0.0.1:8787/. All five tabs render with mock data — a single stdlib service stands in for every upstream, so no real pool accounts, VPN tunnels, or mihomo are involved. docker compose down stops the demo. The stack bind-mounts this checkout read-only into debian:bookworm-slim and runs ./dist/ppc webui with docker/config.example.json via PPC_CONFIG; edit that file (or repoint PPC_CONFIG) to wire real pools.

This path is demo/dev only. The port is published on 127.0.0.1 because the shell is unauthenticated; see Security & trust model below.

Still on the bare-metal path, the 4th pool's services each ship a config.example.env and a systemd unit under shared-mihomo/{api,mihomo,hub,speed}/:

cp shared-mihomo/api/config.example.env shared-mihomo/api/config.env
# fill in SHARED_MIHOMO_API, SHARED_MIHOMO_REG_STATE, ...
sudo systemctl enable --now shared-mihomo-reg.service

shared-mihomo/mihomo/ovpn-template.example.json is the placeholder for the ovpn-template.json the generator loads at runtime.

🖥️ Web UI

One page; left sidebar; five tabs. Three tabs show the pool's own dashboard — no rewrite, no visual translation, because every upstream UI_HTML uses the same relative-BASE convention; VPNGate and Rayobyte are first-party dashboards in the same style.

  • 🦊 FoxyVPN — clients, ports, origins, quota, region switch
  • 🌀 URnetwork — clients, ports, exits, quota left, relays
  • 🐋 Windscribe — cards with ports, exit, quota used, node health
  • 🌐 VPNGate — cards with ports, exit node, alive badge, Rotate button
  • 🛰️ Rayobyte — read-only quota cards: accounts, live endpoints, remaining MB, client ports/nodes

The screenshot at the top of this file is a live Windscribe tab.

⚙️ HTTP API (the 4th pool's external contract)

ppc register listens on port 8095 by default and manages the mapping uid → local port → provider node:

GET /register?uid=<name>   # allocate a free port, pin one random alive exit
GET /rotate?uid=<name>     # re-roll the same port to a new random exit
GET /node?uid=<name>&name=<node>  # pin a specific node
GET /nodes                  # every node name in the provider
GET /status                 # current uid → port/node mapping
GET /delete?uid=<name>      # release the port

All responses are JSON; no auth (trust boundary = the network, like the pools). See shared-mihomo/api/register.service.example for the systemd unit.

🛡 Security & trust model

  • The shell is an unauthenticated reverse proxy. Its trust boundary is the network it binds; there is no login, no session, no CSRF token.
  • The pools themselves were already unauthenticated on the host.
  • The Compose demo publishes its port on 127.0.0.1 only (127.0.0.1:8787:8787). A bare 8787:8787 would bind all host interfaces and expose this unauthenticated proxy to any network peer. host_allowlist is a forgeable Host-header check, not IP access control — the loopback publish is the boundary. Pointing the demo config at real pools is the operator's responsibility, not a trust boundary this project provides.
  • It is not an open relay: upstream URLs are built by string concatenation (no urljoin), ../leading // paths are rejected, only an allowlisted header set is forwarded, Host is replaced with the upstream host, upstream 3xx is never followed server-side, and same-origin Location is rewritten back under /p/<pool>/.
  • The VPNGate hub consumes the official CSV/client endpoints plus the live pipeline's configured inbox and giamping sources; the Cloudflare KV publish is optional and reads its token from cf.env. No credential is embedded.
  • Credentials (CA/cert/key, foxyvpn tokens, urn seedphrases, windscribe accounts) are never committed; ppc sanitize . enforces this for first-party files, with documented contract-name exceptions for the Go roles.
  • Vendored upstream subtrees are byte-identical to their pinned commits.

🧩 Layout

.
├── README.md
├── docker-compose.yml          # one-command demo stack
├── cmd/ppc/                    # multi-call static binary
├── internal/                   # Go roles: foxy, urn, urnhub, urnspeed,
│                               #   ws, register, genprovider, vghub, vgspeed,
│                               #   webui, front, store, supervise, sanitize
├── docker/                     # demo-only config
│   └── config.example.json     # all five pools -> one mock on :8080
├── webui/                      # the unified shell assets
│   ├── index.html              # left-sidebar tab shell
│   └── config.example.json
├── pools/
│   ├── foxyvpn-pool/           # subtree · pinned · upstream untouched
│   ├── urn-pool/              # subtree · pinned · upstream untouched
│   └── windscribe-pool/        # subtree · pinned · upstream untouched
├── (local only, not tracked)
│   └── windscribe-host-webui/  # deployed Windscribe UI snapshot
├── shared-mihomo/             # first-party, sanitized
│   ├── api/                   # ppc register · uid→port→node, rotate, delete
│   ├── mihomo/                # config.yaml.example, ppc gen-provider, units
│   ├── hub/                   # ppc vpngate-hub · official sources
│   ├── speed/                 # ppc vpngate-speed · public sources
│   └── webui/                 # VPNGate Rotate dashboard (ui.html)
├── docs/
│   └── images/dashboard-windscribe.png   # masked
└── scripts/measure.sh

🧪 Tests

go test ./...
go test -race ./internal/foxyclient ./internal/ws ./internal/front
./dist/ppc sanitize .

UI source checks and the Compose smoke live in scripts/check-ui.sh and docker-compose.yml; both run against the same static binary.

Skill note: the screenshot at the top of this file was verified by two full-resolution OCR sweeps against every sensitive regex; the masked artifact is what is committed, never the original.

🙏 Credits

  • foxyvpn-pool by anton1615 — MIT © anton1615
  • urn-pool by anton1615 — MIT © anton1615
  • windscribe-pool by anton1615 — MIT © anton1615
  • shared-mihomo, vpngate-hub, vpngate-speed, the unified shell and the VPNGate dashboard — first-party components (MIT)

Internal inventory and implementation plan are kept local and untracked; this repo ships the service architecture only.

About

DEPRECATED — superseded by proxy-pool-collection-go. Python implementation: unified dashboard and service architecture for self-hosted proxy pools (no credentials)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages