2020-03-29 16:42:06 -04:00
# Gluetun VPN client
2020-02-06 20:42:46 -05:00
2021-03-05 23:12:19 -05:00
*Lightweight swiss-knife-like VPN client to tunnel to Cyberghost, FastestVPN,
2021-06-20 09:21:48 -07:00
HideMyAss, IPVanish, IVPN, Mullvad, NordVPN, Privado, Private Internet Access, PrivateVPN,
2021-06-20 09:18:03 -07:00
ProtonVPN, PureVPN, Surfshark, TorGuard, VPNUnlimited, VyprVPN and Windscribe VPN servers
2021-02-26 12:58:58 +00:00
using Go, OpenVPN, iptables, DNS over TLS, ShadowSocks and an HTTP proxy*
2020-02-06 20:42:46 -05:00
2021-04-19 00:31:46 +00:00
**ANNOUNCEMENT**:
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 )
2021-07-14 00:31:27 +00:00
- Video:
[](https://youtu.be/0F6I03LQcI4)
2020-09-09 20:52:22 +00:00
2020-02-06 20:42:46 -05:00
## Features
2021-05-31 18:54:36 +00:00
- Based on Alpine 3.13 for a small Docker image of 54MB
2021-06-20 09:21:48 -07:00
- Supports: **Cyberghost ** , **FastestVPN ** , **HideMyAss ** , **IPVanish ** , **IVPN ** , **Mullvad ** , **NordVPN ** , **Privado ** , **Private Internet Access ** , **PrivateVPN ** , **ProtonVPN ** , **PureVPN ** , **Surfshark ** , **TorGuard ** , **VPNUnlimited ** , **Vyprvpn ** , **Windscribe ** 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-02-14 18:59:27 +00:00
- Compatible with amd64, i686 (32 bit), **ARM ** 64 bit, ARM 32 bit v6 and v7, and even 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
2021-06-22 15:21:49 +00:00
1. Ensure your `tun` kernel module is setup:
```sh
sudo modprobe tun
# or, if you don't have modprobe, with
sudo insmod /lib/modules/tun.ko
```
1. Extra steps:
- [For Synology users ](https://github.com/qdm12/gluetun/wiki/Synology-setup )
- [For 32 bit Operating systems (**Rasberry Pis**) ](https://github.com/qdm12/gluetun/wiki/32-bit-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
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.
- [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.
2021-06-17 22:46:30 +00:00
- Use [Docker secrets ](https://github.com/qdm12/gluetun/wiki/Docker-secrets ) to read your credentials instead of environment variables
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)

