Privacy & Networking

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).

Gluetun + ProtonVPN WireGuard on a VPS (2026): Docker Kill Switch & NAT-PMP
RATE SHEET

Hardware Spec & Verified Rate Sheet: Gluetun + ProtonVPN

November 22, 2026
Hardware Spec & Verified Rate Sheet: Gluetun + ProtonVPN
Provider / TierHardware & ArchitectureListNet BenefitCodeLink
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/PassSubscription$20 USD creditClaim $20
01 Open the link to bind XF3PLUTARXVF (-20%) or 5AA9X0DA ($20 USD).02 Pick 12/24-mo KVM VPS or Proton Plus/Unlimited.03 Deploy Ubuntu 24.04 + Docker + WireGuard tunnel.
01 / HARDWARE TELEMETRY

Measured RAM, vCPU & NVMe Profile for Gluetun + ProtonVPN

Min → Rec RAM
1 GB → 4 GB
Idle 48 MB · Peak 140 MB
Min → Rec vCPU
1 → 1 vCPU
AMD EPYC / High-Clock
Min → Rec NVMe
20 → 50 GB
PCIe Gen4 NVMe SSD
Primary Bottleneck

WireGuard encryption throughput scales effortlessly past 600+ Mbps on 1 AMD EPYC vCPU

Projected Memory Footprint on Hostinger KVM 1 (4 GB RAM)Idle 4% · Peak 9% · Headroom 91%
02 / DOCKER COMPOSE & SHELL

Production Deployment Stack (Gluetun + ProtonVPN)

Docker Stack Sizer
docker-compose.ymlyaml
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"]
deploy-and-verify.shbash
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/json
03 / PRODUCTION FIELD NOTES

Critical Operational Insights

When `VPN_PORT_FORWARDING=on` is enabled with ProtonVPN Plus/Unlimited, Gluetun writes the active NAT-PMP forwarded port to `/tmp/gluetun/forwarded_port`.
Hostinger KVM and Vultr both provide `/dev/net/tun` natively (unlike legacy OpenVZ VPS hosts where TUN/WireGuard often fails).
04 / SECURITY & PRIVACY

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.

Isolate container egress with ProtonVPN WireGuard + Proton Suite (US$20 in credits · code 5AA9X0DA).Claim US$20 on Proton
05 / VERIFIED DEPLOYMENT STACK

Deploy on Verified Infrastructure

KVM COMPUTE · EXTRA −20%

Hostinger KVM 1

~$5.19/mo
$6.49/mo
vCPU
1 EPYC
RAM
4 GB
NVMe
50 GB
24m Save
~$31
Renew: $9.99/mo · Free backups
SWISS PRIVACY · ACCOUNT CREDIT

Proton VPN & Unlimited

US$20
in credits
Tunnel
WireGuard
Docker
Gluetun + NAT
Suite
VPN·Mail·Drive
pr.tn/ref/5AA9X0DA

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.

More blueprints in this category

All guides