Self-host gluetun
v3.41.3 docker-compose up -d- Stars
- 16 086
- Rating
- 5.0 (1)
- Port
- 8000 (control server), 8888 (HTTP proxy), 8388 (Shadowsocks), 1080 (SOCKS5)
qmcgaw/gluetunWhat is gluetun?
Gluetun is a versatile VPN client packaged in a lightweight Docker container. It supports a wide range of VPN providers, including AirVPN, Cyberghost, ExpressVPN, Mullvad, NordVPN, Private Internet Access, ProtonVPN, Surfshark, and many more. The project is built on Alpine Linux and Go, ensuring a small footprint and high performance.
Gluetun offers both OpenVPN and WireGuard support, with the ability to fine-tune VPN server selection, DNS over TLS, and built-in proxy servers (Shadowsocks, SOCKS5, HTTP). It also includes a firewall kill switch to ensure traffic only flows through the VPN, making it ideal for privacy-focused users. The client can be used to route traffic from other Docker containers or LAN devices, providing a flexible solution for securing network traffic.
The project is actively maintained, with a strong focus on security, privacy, and ease of use. It is licensed under the MIT license and is fully open-source.
gluetun alternatives
phantom-wgPhantom-WG is a self-hosted, open-source WireGuard VPN platform with multihop routing, IPv6 dual-stack, and crash recovery via SQLite, all in isolated Docker containers.Comparephantom-wg with gluetun
pia-wireguardSelf-hosted WireGuard VPN client container that routes Docker workloads through a PIA tunnel, with port forwarding, a default-deny kill-switch firewall and healthchecks.Comparepia-wireguard with gluetun
docker-openvpnSelf-hosted OpenVPN Docker image with auto PKI, client management, dual-stack IPv4/IPv6, and modern ciphers.Comparedocker-openvpn with gluetun
tunwgTunwg is a self-hosted, open-source ngrok alternative creating encrypted WireGuard tunnels with automatic HTTPS certificates and custom domains.Comparetunwg with gluetun
docker-ipsec-vpn-serverSelf-hosted IPsec VPN server in a ~19 MB Alpine Docker image with L2TP, Cisco IPsec and IKEv2, auto-generating credentials and client profiles.Comparedocker-ipsec-vpn-server with gluetun
gravitlSelf-hosted, open-source WireGuard automation: mesh VPNs, remote access gateways and site-to-site networks managed from a web UI with ACLs and DNS.Comparegravitl with gluetun
usulnetSelf-hosted Docker management platform with built-in OSINT recon, metadata hygiene, and infrastructure tooling — all in a single AGPL-3.0 binary.Compareusulnet with gluetun
dockovpnDockoVPN is a self-hosted open-source Dockerized OpenVPN server that starts in under 2 seconds without persistent storage requirements.Comparedockovpn with gluetun
Should you self-host gluetun?
gluetun scores 75/100 on selfhost.directory (how scoring works) and ranks #5 of 56 in VPN. It has 16 086 GitHub stars, +332 in the last 30 days.
It shipped 8 stable releases in the past year. The latest, v3.41.3, came out on 30 July 2026. New versions land roughly every 1 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Go.
Its closest alternative on selfhost.directory is Tailscale (84/100, 39 141 stars). It scores higher overall, so compare the two before you pick. See gluetun vs Tailscale side by side.
Features
- Built-in proxy servers
- DNS over TLS
- Docker Integration
- Firewall kill switch
- Health Checks
- IPv6 Support
- LAN device support
- Multi-provider VPN support
- OpenVPN and WireGuard
- Port Forwarding
gluetun README
Lightweight swiss-army-knife-like VPN client to multiple VPN service providers
⚠️ This and gluetun-wiki are the only websites for Gluetun, other websites claiming to be official are scams ⚠️
🗯️ this repository will be migrated to github.com/passteque/gluetun on 2026-05-21, which is a Github organization under my sole control, so don't get alarmed if you get redirected in the coming days 😉 Reason being migrating Github sponsors to the Open source collective due to my personal situation, basically annoying paperwork. On the plus side, it will be more transparent and funds donated will only be used for the project. The Docker image names will remain the same.
FAQ
What is the firewall kill switch?
The firewall kill switch ensures that all traffic is blocked if the VPN connection drops, preventing any data leaks. It is enabled by default and can be configured using the `FIREWALL_ENABLED_DISABLING_IT_SHOOTS_YOU_IN_YOUR_FOOT` environment variable.
How do I update the VPN server list?
The VPN server list can be updated automatically by setting the `UPDATER_PERIOD` environment variable (e.g., `24h`). For more details, see the [servers listing and updating guide](https://github.com/qdm12/gluetun-wiki/blob/main/setup/servers.md).
Can I use Gluetun on a Raspberry Pi?
Yes, Gluetun supports ARM architectures, including Raspberry Pi. For setup instructions, check the [32-bit prerequisites page](https://github.com/qdm12/gluetun-wiki/blob/main/setup/prerequisites/32bit.md).
How do I connect other containers to Gluetun?
You can connect other Docker containers to Gluetun by setting their network mode to `service:gluetun`. For detailed instructions, see the [connect a container to Gluetun guide](https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md).
What VPN providers are supported?
Gluetun supports a wide range of VPN providers, including AirVPN, Cyberghost, ExpressVPN, Mullvad, NordVPN, Private Internet Access, ProtonVPN, Surfshark, and many more. For a full list, check the [providers directory](https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers).
More in VPN
gravitlSelf-hosted, open-source WireGuard automation: mesh VPNs, remote access gateways and site-to-site networks managed from a web UI with ACLs and DNS.
HeadplaneSelf-hosted, open-source web admin panel for Headscale, the open Tailscale control server: nodes, ACLs, DNS, SSO and browser SSH.
headscaleSelf-hosted, open-source Tailscale control server for personal and small org tailnets with WireGuard VPN, MagicDNS, and ACLs.
headscale-adminSelf-hosted web UI for headscale (Tailscale control server). Manage users, nodes, routes, ACLs via static files in Docker or any web server.
HysteriaSelf-hosted, open-source proxy server and client that rides a customized QUIC stack masquerading as HTTP/3, with SOCKS5, HTTP, forwarding, TProxy and TUN modes.
LantunnelLantunnel is a self-hosted, open-source mesh VPN connecting devices via direct P2P encrypted paths with relay fallback — no port forwarding needed.
LucX-UILucX-UI is a self-hosted Xray VPN panel forked from 3x-ui adding kernel-mode AmneziaWG, tunnel sidecars, and advanced subscriptions.
meridianMeridian is an open-source CLI that deploys censorship-resistant VLESS+Reality, XHTTP, and Hysteria2 proxy servers on your VPS with automatic hardening.
MeshLANMeshLAN is a self-hosted, open-source virtual LAN connecting Windows devices over encrypted P2P tunnels with relay fallback and MeshDNS on your own Linux control plane.
mesh-router-tunnelSelf-hosted WireGuard VPN routing domain requests to Docker containers across networks with automatic HTTPS via Caddy.
mullgateSelf-hosted command-line tool converting a Mullvad account into multiple authenticated proxy endpoints for selective traffic routing.
mystOpen-source GPL-3.0 implementation of a blockchain-based decentralized VPN network: WireGuard transport, provider and consumer modes, plus a browser NodeUI dashboard.

0 comments