3proxy
by QuenchWorks
3proxy: a tiny multi-protocol proxy suite (HTTP and SOCKS4/5 proxies, port mapping). Hardened by QuenchWorks: built from source, nonroot, CVE-gated, cosign-signed and pinned by digest.
About this chart
Quenchworks 3proxy
Hardened 3proxy, the tiny multi-protocol proxy suite in C: HTTP and SOCKS4/5 proxies, POP3 and FTP proxies, and TCP/UDP port mapping. The image is built from source against Wolfi OpenSSL and PCRE2, runs as uid 1001 and is CVE-gated at build, cosign-signed and pinned by digest. 3proxy's own license also offers Apache-2.0, which is how it ships here.
Install
helm install egress oci://ghcr.io/quenchworks/charts/3proxy
kubectl get secret egress-3proxy -o jsonpath='{.data.password}' | base64 -d
Clients then use http://proxy:<password>@egress-3proxy:3128 (HTTP proxy) or
socks5h://proxy:<password>@egress-3proxy:1080.
Authentication
Every client authenticates; there is no open mode. auth.username gets a generated password
(kept across upgrades) unless auth.password is set; auth.extraUsers adds more. The rendered
config lives in a Secret.
Configuration
| Key | Default | What it does |
|---|---|---|
http.enabled, http.port | true, 3128 | HTTP proxy |
socks.enabled, socks.port | true, 1080 | SOCKS4/5 proxy |
auth.username, auth.password | proxy, generated | The default user |
auth.extraUsers | [] | More users: [{name, password}] |
extraConfig | "" | Raw 3proxy config appended after the listeners (port maps, limits) |
extraPorts | [] | Publish listeners added in extraConfig |
Requests to 127.0.0.0/8 are denied, so clients cannot reach services bound to the pod's
loopback through the proxy.
Verify the image
cosign verify ghcr.io/quenchworks/images/3proxy \
--certificate-identity-regexp 'https://github.com/quenchworks/.+' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
Deploy 3proxy with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has 3proxy on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chart3proxy is pinned at v0.0.3 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply