CLI-first VPN proxy stack for operators who want:
- one config file
- deterministic tunnel generation
- quick start + quick health checks
- Docker (
docker compose) - Optional: Python 3.11+ (faster local execution of
scripts/proxyctl.py)
./proxyctl works even without local Python (Dockerized fallback).
git clone <your-repo-url> vpn-proxy
cd vpn-proxy
chmod +x proxyctl./proxyctl init
./proxyctl up
./proxyctl status
./proxyctl checkStop:
./proxyctl down./proxyctl init
./proxyctl edit
./proxyctl generate
./proxyctl up
./proxyctl down
./proxyctl status
./proxyctl endpoints
./proxyctl doctor
./proxyctl checkOptional provider override:
./proxyctl init --provider gluetunCommon flags:
--config /path/to/proxy.tomlinit --templateup --waitup --wait --wait-timeout 180up --wait --restart-retries 4 --restart-backoff 5down --remove-volumescheck --url https://api.ipify.org --timeout 20
Main file: proxy.toml
[project]project metadata and output path[defaults]runtime defaults (includes pinned imageqmcgaw/gluetun:v3)[provider]provider credentials/settings[tunnel_pool]tunnel count + regions + naming/port strategy
Example:
[tunnel_pool]
count = 2
regions = ["Finland", "Netherlands"]
selector = "country"
name_prefix = "proxy"
port_start = 8111Want different countries? Edit regions directly.
Use NordVPN manual service credentials (not account email/password).
- Path:
Nord Account -> NordVPN -> Manual setup -> Set up NordVPN manually -> Service Credentials - URL: https://my.nordaccount.com/dashboard/nordvpn/manual-configuration/service-credentials/
Environment/config validation:
./proxyctl doctorPer-proxy connectivity check:
./proxyctl checkAUTH_FAILED-> wrong VPN credentials; use manual service credentials.CONNECT tunnel failed, response 503-> container is up but tunnel handshake is still in progress.- One proxy unhealthy while others are healthy -> region-specific issue; change
[tunnel_pool].regions. - Need strict startup gating -> run
./proxyctl up --wait. - Need auto-restart on bad startup handshakes -> run
./proxyctl up --wait --restart-retries 4.
.proxy/compose.yml.proxy/secrets/*
proxy.toml and .proxy/ are gitignored by default.
- Proxy binds to
127.0.0.1by default. - Control API disabled by default.
- Secret values are written to local files with restrictive permissions when possible.
If you expose bind address beyond localhost, apply host firewall rules.
MIT (LICENSE).
You are responsible for compliant and lawful usage:
- follow your VPN provider’s Terms of Service
- follow local laws/regulations in your jurisdiction
- do not use this project for abuse, fraud, or unauthorized access