2020-03-29 16:42:06 -04:00
# Gluetun VPN client
2020-02-06 20:42:46 -05:00
2020-07-15 18:14:45 -04:00
*Lightweight swiss-knife-like VPN client to tunnel to Private Internet Access,
2020-11-08 20:56:49 -05:00
Mullvad, Windscribe, Surfshark Cyberghost, VyprVPN, NordVPN, PureVPN and Privado VPN servers, using Go, OpenVPN, iptables, DNS over TLS, ShadowSocks and an HTTP proxy*
2020-02-06 20:42:46 -05:00
2020-12-29 22:46:18 +00:00
**ANNOUNCEMENT**: * New Docker image name `qmcgaw/gluetun` *
2020-02-06 20:42:46 -05:00
2020-07-26 12:07:06 +00:00
<img height="250" src="https://raw.githubusercontent.com/qdm12/gluetun/master/title.svg?sanitize=true">
2020-02-06 20:42:46 -05:00
2020-12-30 22:29:18 +00:00
[](https://hub.docker.com/r/qmcgaw/gluetun/tags?page=1&ordering=last_updated)
[](https://hub.docker.com/r/qmcgaw/gluetun/tags)
2020-12-29 22:10:44 +00:00
2020-02-06 20:42:46 -05:00
[](https://hub.docker.com/r/qmcgaw/private-internet-access)
2020-12-29 22:10:44 +00:00
[](https://hub.docker.com/r/qmcgaw/gluetun)
2020-12-30 22:29:18 +00:00




[](https://github.com/qdm12/gluetun/commits)
2020-02-06 20:42:46 -05:00
2020-12-30 22:29:18 +00:00
[](https://github.com/qdm12/gluetun)
2020-02-06 20:42:46 -05:00
2020-12-29 23:00:55 +00:00
## Quick links
2020-09-09 20:52:22 +00:00
2020-12-29 23:00:55 +00:00
- Problem or suggestion?
- [Start a discussion ](https://github.com/qdm12/gluetun/discussions )
- [Create an issue ](https://github.com/qdm12/gluetun/issues )
- [Check the Wiki ](https://github.com/qdm12/gluetun/wiki )
- [Join the Slack channel ](https://join.slack.com/t/qdm12/shared_invite/enQtOTE0NjcxNTM1ODc5LTYyZmVlOTM3MGI4ZWU0YmJkMjUxNmQ4ODQ2OTAwYzMxMTlhY2Q1MWQyOWUyNjc2ODliNjFjMDUxNWNmNzk5MDk )
- Happy?
- Sponsor me on [github.com/sponsors/qdm12 ](https://github.com/sponsors/qdm12 )
- Donate to [paypal.me/qmcgaw ](https://www.paypal.me/qmcgaw )
- Drop me [an email ](mailto:quentin.mcgaw@gmail.com )
2020-09-09 20:52:22 +00:00
2020-02-06 20:42:46 -05:00
## Features
2020-07-11 21:10:41 +00:00
- Based on Alpine 3.12 for a small Docker image of 52MB
2020-11-08 20:56:49 -05:00
- Supports **Private Internet Access ** , **Mullvad ** , **Windscribe ** , **Surfshark ** , **Cyberghost ** , **Vyprvpn ** , **NordVPN ** , **PureVPN ** and **Privado ** servers
2020-07-25 11:55:35 -04:00
- Supports Openvpn only for now
2020-02-22 17:06:35 +00:00
- DNS over TLS baked in with service provider(s) of your choice
2020-05-02 17:08:15 +00:00
- DNS fine blocking of malicious/ads/surveillance hostnames and IP addresses, with live update every 24 hours
2020-02-22 17:06:35 +00:00
- Choose the vpn network protocol, `udp` or `tcp`
2020-06-03 02:11:35 +00:00
- Built in firewall kill switch to allow traffic only with needed the VPN servers and LAN devices
2020-09-18 19:56:53 +00:00
- Built in Shadowsocks proxy (protocol based on SOCKS5 with an encryption layer, tunnels TCP+UDP)
2020-10-31 21:50:31 -04:00
- Built in HTTP proxy (tunnels HTTP and HTTPS through TCP)
2020-12-31 04:40:04 +00:00
- [Connect other containers to it ](https://github.com/qdm12/gluetun/wiki/Connect-to-gluetun )
- [Connect LAN devices to it ](https://github.com/qdm12/gluetun/wiki/Connect-to-gluetun )
2021-01-06 01:31:04 +00:00
- Compatible with amd64, i686 (32 bit), **ARM ** 64 bit, ARM 32 bit v6 and v7, and even s390x as well as ppc64le 🎆
2020-07-25 11:55:35 -04:00
- VPN server side port forwarding for Private Internet Access and Vyprvpn
2020-02-22 17:07:06 +00:00
- Possibility of split horizon DNS by selecting multiple DNS over TLS providers
2020-02-22 17:06:35 +00:00
- Subprograms all drop root privileges once launched
- Subprograms output streams are all merged together
2020-02-22 17:07:06 +00:00
- Can work as a Kubernetes sidecar container, thanks @rorph
2020-02-06 20:42:46 -05:00
## Setup
2020-06-10 01:34:20 +00:00
1. On some devices you may need to setup your tunnel kernel module on your host with `insmod /lib/modules/tun.ko` or `modprobe tun`
2020-09-25 23:12:34 +00:00
- [Synology users Wiki page ](https://github.com/qdm12/gluetun/wiki/Synology-setup )
2020-02-06 20:42:46 -05:00
1. Launch the container with:
```bash
2020-06-03 02:11:35 +00:00
docker run -d --name gluetun --cap-add=NET_ADMIN \
2020-09-12 18:06:52 +00:00
-e VPNSP="private internet access" -e REGION="CA Montreal" \
2020-12-29 20:47:56 +00:00
-e OPENVPN_USER=js89ds7 -e OPENVPN_PASSWORD=8fd9s239G \
2020-08-25 19:38:50 -04:00
-v /yourpath:/gluetun \
2020-12-29 22:10:44 +00:00
qmcgaw/gluetun
2020-02-06 20:42:46 -05:00
```
2020-07-26 12:07:06 +00:00
or use [docker-compose.yml ](https://github.com/qdm12/gluetun/blob/master/docker-compose.yml ) with:
2020-02-06 20:42:46 -05:00
```bash
2020-12-29 20:47:56 +00:00
echo "your openvpn username" > openvpn_user
echo "your openvpn password" > openvpn_password
2020-02-06 20:42:46 -05:00
docker-compose up -d
```
2020-12-31 04:49:18 +00:00
You should probably check the many [environment variables ](https://github.com/qdm12/gluetun/wiki/Environment-variables ) available to adapt the container to your needs.
2020-02-22 17:07:06 +00:00
2020-12-31 04:49:18 +00:00
## Further setup
2020-02-22 17:07:06 +00:00
2020-12-31 04:49:18 +00:00
The following points are all optional but should give you insights on all the possibilities with this container.
- Use [Docker secrets ](https://github.com/qdm12/gluetun/wiki/Docker-secrets ) to read your credentials instead of environment variables
- [Test your setup ](https://github.com/qdm12/gluetun/wiki/Test-your-setup )
- [How to connect other containers and devices to Gluetun ](https://github.com/qdm12/gluetun/wiki/Connect-to-gluetun )
- [VPN server side port forwarding ](https://github.com/qdm12/gluetun/wiki/Port-forwarding )
- [HTTP control server ](https://github.com/qdm12/gluetun/wiki/HTTP-Control-server ) to automate things, restart Openvpn etc.
- Update the image with `docker pull qmcgaw/gluetun:latest` . See this [Wiki document ](https://github.com/qdm12/gluetun/wiki/Docker-image-tags ) for Docker tags available.
2020-05-02 14:59:22 +00:00
2020-02-06 20:42:46 -05:00
## License
2020-12-31 04:49:18 +00:00
[](https://github.com/qdm12/gluetun/master/LICENSE)
2020-04-13 00:32:57 +00:00
2020-12-30 22:29:18 +00:00
## Metadata
[](https://github.com/qdm12/gluetun/commits)
[](https://github.com/qdm12/gluetun/pulls?q=is%3Apr+is%3Aclosed)
[](https://github.com/qdm12/gluetun/issues)
[](https://github.com/qdm12/gluetun/issues?q=is%3Aissue+is%3Aclosed)
2020-12-31 03:49:01 +00:00

2020-12-30 22:29:18 +00:00






[](https://hub.docker.com/r/qmcgaw/gluetun)

