Gluetun + ProtonVPN WireGuard on a VPS (2026): Docker Kill Switch & NAT-PMP
Gluetun consumes ~45 MB RAM and wraps any Docker container behind an encrypted ProtonVPN WireGuard tunnel with a kernel-level kill switch (`network_mode: service:gluetun`), ensuring your real VPS IP never leaks. New Proton subscribers also receive US$20 in account credits with referral code 5AA9X0DA (pr.tn/ref/5AA9X0DA).

Hardware Spec & Verified Rate Sheet: Gluetun + ProtonVPN
| Provider / Tier | Hardware & Architecture | List | Net Benefit | Code | Link |
|---|---|---|---|---|---|
Hostinger KVM 1 Recommended for Gluetun + ProtonVPN | 1 vCPU AMD EPYC · 4 GB DDR5 · 50 GB NVMe · 4 TB | $6.49/mo | ~$5.19/mo (-20%) | Claim -20% | |
Proton (VPN & Privacy) WireGuard + VPS Privacy | Gluetun WireGuard + NAT-PMP · Swiss No-Logs · Mail/Drive/Pass | Subscription | $20 USD credit | Claim $20 |
Measured RAM, vCPU & NVMe Profile for Gluetun + ProtonVPN
WireGuard encryption throughput scales effortlessly past 600+ Mbps on 1 AMD EPYC vCPU
Production Deployment Stack (Gluetun + ProtonVPN)
services:
gluetun:
image: qmcgaw/gluetun:latest
container_name: gluetun
restart: unless-stopped
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
VPN_SERVICE_PROVIDER: protonvpn
VPN_TYPE: wireguard
WIREGUARD_PRIVATE_KEY: ${PROTON_WG_PRIVATE_KEY}
SERVER_COUNTRIES: "Switzerland,Netherlands,Sweden"
VPN_PORT_FORWARDING: "on"
FIREWALL_OUTBOUND_SUBNETS: "172.16.0.0/12"
ports:
# Publish attached service UIs strictly on loopback behind TLS proxy:
- "127.0.0.1:8080:8080"
deploy:
resources:
limits:
memory: 256M
isolated-worker:
image: alpine/curl:latest
restart: unless-stopped
network_mode: "service:gluetun"
depends_on:
- gluetun
command: ["sh", "-c", "while true; do curl -s https://ipinfo.io/json; sleep 3600; done"]mkdir -p /opt/vpn-egress && cd /opt/vpn-egress
# Export WireGuard PrivateKey with NAT-PMP enabled from account.protonvpn.com -> Downloads -> WireGuard
echo "PROTON_WG_PRIVATE_KEY=paste_your_32byte_base64_key" > .env && chmod 600 .env
docker compose up -d
# Verify egress IP matches ProtonVPN (NOT your VPS IP):
docker compose exec isolated-worker curl -s https://ipinfo.io/jsonCritical Operational Insights
UFW Firewall, TLS & WireGuard / ProtonVPN Hardening
Gluetun's built-in iptables firewall automatically blocks all non-VPN traffic. Always pair with ProtonVPN's audited Swiss no-logs infrastructure and verify `ipinfo.io` inside the attached container before production traffic.
5AA9X0DA).Claim US$20 on ProtonDeploy on Verified Infrastructure
Hostinger KVM 1
Proton VPN & Unlimited
Frequently Asked Questions
Why use ProtonVPN inside Gluetun on a VPS?
It isolates outbound scraping, P2P, or privacy-sensitive automation containers from your VPS datacenter IP while keeping SSH and your public web apps completely unaffected.
How do I get the US$20 Proton credit for ProtonVPN Plus or Unlimited?
Sign up through the verified BareSpec referral link (/go/protonvpn -> https://pr.tn/ref/5AA9X0DA, code 5AA9X0DA) and subscribe to any paid Proton plan (VPN Plus or Proton Unlimited) to receive US$20 in account credits.


