Gluetun connects containers or LAN clients to many commercial VPN services over OpenVPN or WireGuard. It ships DNS over TLS, optional proxies, and a firewall kill switch in a small image.
Overview
Gluetun is a VPN client packaged as a lightweight Alpine-based Docker image. It is written in Go and oriented toward routing container or host traffic through third-party VPN servers rather than running a private VPN server of your own.
The client lists support for numerous providers, including Mullvad, NordVPN, Private Internet Access, Surfshark, Windscribe, ProtonVPN, and others, with OpenVPN across the set and WireGuard on a documented subset. Users pick UDP or TCP for the tunnel. AmneziaWG is noted for custom provider setups.
Networking extras include built-in DNS over TLS with selectable resolvers, optional DNS blocking lists updated on a schedule, split-horizon DNS when mixing providers, and a kill switch that limits traffic to the VPN tunnel, VPN endpoints, and allowed LAN peers. Shadowsocks, SOCKS5, and HTTP proxies are embedded for forwarding TCP or UDP through the container.
Architecture images cover amd64, 32-bit x86, several ARM variants, and ppc64le. Documentation on the project wiki walks through per-provider configuration; a sample docker-compose file is offered for quick starts, with images published on Docker Hub and GitHub Container Registry. Kubernetes sidecar usage is described in community notes.
Key features
- OpenVPN and WireGuard to many providers
- DNS over TLS with provider choice
- Malicious and ad hostname block lists
- Firewall kill switch for VPN-only egress
- Built-in Shadowsocks, SOCKS5, and HTTP proxies
- UDP or TCP VPN protocol selection
- Small Alpine-based container image
- Multi-architecture Docker builds
Use cases
- Route Docker app traffic through a VPN
- Expose a SOCKS or HTTP proxy on the LAN
- Enforce kill switch for a media stack
- Run as a Kubernetes VPN sidecar
- Block ads via bundled DNS filtering