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-07-25 11:19:45 -04:00
Mullvad, Windscribe, Surfshark Cyberghost, VyprVPN, NordVPN and PureVPN VPN servers, using Go, OpenVPN,
2020-07-15 18:14:45 -04:00
iptables, DNS over TLS, ShadowSocks and Tinyproxy*
2020-02-06 20:42:46 -05:00
2020-07-14 00:38:55 +00:00
**ANNOUNCEMENT**: * [Video of the Git history of Gluetun](https://youtu.be/khipOYJtGJ0) *
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-07-26 12:07:06 +00:00
[](https://github.com/qdm12/gluetun/actions?query=workflow%3A%22Buildx+latest%22)
2020-02-06 20:42:46 -05:00
[](https://hub.docker.com/r/qmcgaw/private-internet-access)
[](https://hub.docker.com/r/qmcgaw/private-internet-access)
2020-07-26 12:07:06 +00:00
[](https://github.com/qdm12/gluetun/issues)
[](https://github.com/qdm12/gluetun/issues)
[](https://github.com/qdm12/gluetun/issues)
2020-02-06 20:42:46 -05:00
[](https://microbadger.com/images/qmcgaw/private-internet-access)
[](https://microbadger.com/images/qmcgaw/private-internet-access)
[](https://join.slack.com/t/qdm12/shared_invite/enQtOTE0NjcxNTM1ODc5LTYyZmVlOTM3MGI4ZWU0YmJkMjUxNmQ4ODQ2OTAwYzMxMTlhY2Q1MWQyOWUyNjc2ODliNjFjMDUxNWNmNzk5MDk)
## Features
2020-07-11 21:10:41 +00:00
- Based on Alpine 3.12 for a small Docker image of 52MB
2020-07-25 11:19:45 -04:00
- Supports **Private Internet Access ** , **Mullvad ** , **Windscribe ** , **Surfshark ** , **Cyberghost ** , **Vyprvpn ** , **NordVPN ** and **PureVPN ** 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-02-22 17:06:35 +00:00
- Built in SOCKS5 proxy (Shadowsocks, tunnels TCP+UDP)
- Built in HTTP proxy (Tinyproxy, tunnels TCP)
2020-07-26 12:07:06 +00:00
- [Connect other containers to it ](https://github.com/qdm12/gluetun#connect-to-it )
- [Connect LAN devices to it ](https://github.com/qdm12/gluetun#connect-to-it )
2020-03-29 16:42:06 -04:00
- Compatible with amd64, i686 (32 bit), **ARM ** 64 bit, ARM 32 bit v6 and v7 🎆
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-02-22 17:05:52 +00:00
1. Requirements
2020-07-25 11:55:35 -04:00
- A VPN account with one of the service providers supported
2020-07-26 12:07:06 +00:00
- If you have a host or router firewall, please refer [to the firewall documentation ](https://github.com/qdm12/gluetun/blob/master/doc/firewall.md )
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-07-26 12:07:06 +00:00
- *Synology users*: please read [this part of the Wiki ](https://github.com/qdm12/gluetun/wiki/Common-issues#synology )
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-02-06 20:42:46 -05:00
-e REGION="CA Montreal" -e USER=js89ds7 -e PASSWORD=8fd9s239G \
qmcgaw/private-internet-access
```
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
```
Note that you can:
2020-02-22 17:07:06 +00:00
2020-02-06 20:42:46 -05:00
- Change the many [environment variables ](#environment-variables ) available
2020-04-12 13:42:41 +00:00
- Use `-p 8888:8888/tcp` to access the HTTP web proxy (and put your LAN in `EXTRA_SUBNETS` environment variable, in example `192.168.1.0/24` )
- Use `-p 8388:8388/tcp -p 8388:8388/udp` to access the SOCKS5 proxy (and put your LAN in `EXTRA_SUBNETS` environment variable, in example `192.168.1.0/24` )
2020-04-30 23:41:57 +00:00
- Use `-p 8000:8000/tcp` to access the [HTTP control server ](#HTTP-control-server ) built-in
2020-02-22 17:07:06 +00:00
2020-07-26 12:07:06 +00:00
**If you encounter an issue with the tun device not being available, see [the FAQ](https://github.com/qdm12/gluetun/blob/master/doc/faq.md#how-to-fix-openvpn-failing-to-start) **
2020-05-02 14:59:22 +00:00
2020-07-26 12:07:06 +00:00
1. You can update the image with `docker pull qmcgaw/private-internet-access:latest` . See the [wiki ](https://github.com/qdm12/gluetun/wiki/Common-issues#use-a-release-tag ) for more information on other tags available.
2020-02-06 20:42:46 -05:00
## Testing
2020-06-03 02:11:35 +00:00
Check the VPN IP address matches your expectations
2020-02-06 20:42:46 -05:00
```sh
2020-06-26 14:36:31 +00:00
docker run --rm --network=container:gluetun alpine:3.12 wget -qO- https://ipinfo.io
2020-02-06 20:42:46 -05:00
```
2020-07-26 12:07:06 +00:00
Want more testing? ▶ [see the Wiki ](https://github.com/qdm12/gluetun/wiki/Testing )
2020-05-17 17:54:37 -04:00
2020-02-06 20:42:46 -05:00
## Environment variables
2020-05-17 18:34:57 -04:00
**TLDR**; only set the 🏁 marked environment variables to get started.
### VPN
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
2020-07-25 11:19:45 -04:00
| 🏁 `VPNSP` | `private internet access` | `private internet access` , `mullvad` , `windscribe` , `surfshark` , `vyprvpn` , `nordvpn` , `purevpn` | VPN Service Provider |
2020-05-17 18:34:57 -04:00
| `IP_STATUS_FILE` | `/ip` | Any filepath | Filepath to store the public IP address assigned |
| `PROTOCOL` | `udp` | `udp` or `tcp` | Network protocol to use |
| `OPENVPN_VERBOSITY` | `1` | `0` to `6` | Openvpn verbosity level |
| `OPENVPN_ROOT` | `no` | `yes` or `no` | Run OpenVPN as root |
2020-06-05 19:32:12 -04:00
| `OPENVPN_TARGET_IP` | | Valid IP address | Specify a target VPN server (or gateway) IP address to use |
2020-05-17 18:34:57 -04:00
| `OPENVPN_CIPHER` | | i.e. `aes-256-gcm` | Specify a custom cipher to use. It will also set `ncp-disable` if using AES GCM for PIA |
| `OPENVPN_AUTH` | | i.e. `sha256` | Specify a custom auth algorithm to use |
2020-07-23 01:48:18 +00:00
*For all providers below, server location parameters are all optional. By default a random server is picked using the filter settings provided.*
2020-05-17 18:34:57 -04:00
- Private Internet Access
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your username |
| 🏁 `PASSWORD` | | | Your password |
2020-07-23 01:48:18 +00:00
| `REGION` | | One of the [PIA regions ](https://www.privateinternetaccess.com/pages/network/ ) | VPN server region |
2020-05-17 18:34:57 -04:00
| `PIA_ENCRYPTION` | `strong` | `normal` , `strong` | Encryption preset |
| `PORT_FORWARDING` | `off` | `on` , `off` | Enable port forwarding on the VPN server |
| `PORT_FORWARDING_STATUS_FILE` | `/forwarded_port` | Any filepath | Filepath to store the forwarded port number |
- Mullvad
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your user ID |
2020-07-23 01:48:18 +00:00
| `COUNTRY` | | One of the [Mullvad countries ](https://mullvad.net/en/servers/#openvpn ) | VPN server country |
2020-05-17 18:34:57 -04:00
| `CITY` | | One of the [Mullvad cities ](https://mullvad.net/en/servers/#openvpn ) | VPN server city |
| `ISP` | | One of the [Mullvad ISP ](https://mullvad.net/en/servers/#openvpn ) | VPN server ISP |
| `PORT` | | `80` or `443` for TCP; or `53` for UDP. Leave blank for default Mullvad server port | Custom VPN port to use |
- Windscribe
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your username |
| 🏁 `PASSWORD` | | | Your password |
2020-07-23 01:48:18 +00:00
| `REGION` | | One of the [Windscribe regions ](https://windscribe.com/status ) | VPN server region |
2020-05-17 18:34:57 -04:00
| `PORT` | | One from the [this list of ports ](https://windscribe.com/getconfig/openvpn ) | Custom VPN port to use |
2020-05-29 07:24:27 -04:00
- Surfshark
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
2020-07-08 03:14:05 +02:00
| 🏁 `USER` | | | Your **service ** username, found at the bottom of the [manual setup page ](https://account.surfshark.com/setup/manual ) |
| 🏁 `PASSWORD` | | | Your **service ** password |
2020-07-26 12:07:06 +00:00
| `REGION` | | One of the [Surfshark regions ](https://github.com/qdm12/gluetun/wiki/surfshark ) | VPN server region |
2020-05-29 07:24:27 -04:00
2020-06-13 10:43:47 -04:00
- Cyberghost
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your username |
| 🏁 `PASSWORD` | | | Your password |
2020-07-14 00:17:31 +00:00
| 🏁 `CLIENT_KEY` | | | Your device client key content, **see below ** |
2020-07-26 12:07:06 +00:00
| `REGION` | | One of the [Cyberghost countries ](https://github.com/qdm12/gluetun/wiki/Cyberghost#regions ) | VPN server country |
| `CYBERGHOST_GROUP` | `Premium UDP Europe` | One of the [server groups ](https://github.com/qdm12/gluetun/wiki/Cyberghost#server-groups ) | Server group |
2020-06-13 10:43:47 -04:00
2020-07-14 00:17:31 +00:00
To specify your client key, you can either:
2020-06-13 10:43:47 -04:00
2020-07-14 00:17:31 +00:00
- Bind mount it at `/files/client.key` , for example with `-v /yourpath/client.key:/files/client.key:ro`
- Convert it to a single line value using:
```sh
docker run -it --rm -v /yourpath/client.key:/files/client.key:ro qmcgaw/private-internet-access clientkey
```
2020-06-13 10:43:47 -04:00
2020-07-14 00:17:31 +00:00
And use the line produced as the value for the environment variable `CLIENT_KEY` .
2020-06-13 10:43:47 -04:00
2020-07-16 01:52:09 +00:00
- Vyprvpn
2020-07-13 08:04:35 -04:00
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your username |
| 🏁 `PASSWORD` | | | Your password |
2020-07-23 01:48:18 +00:00
| `REGION` | | One of the [VyprVPN regions ](https://www.vyprvpn.com/server-locations ) | VPN server region |
2020-07-15 18:14:45 -04:00
- NordVPN
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your username |
| 🏁 `PASSWORD` | | | Your password |
2020-07-23 01:48:18 +00:00
| `REGION` | | One of the NordVPN server country, i.e. `Switzerland` | VPN server country |
2020-07-16 01:52:09 +00:00
| `SERVER_NUMBER` | | Server integer number | Optional server number. For example `251` for `Italy #251` |
2020-07-13 08:04:35 -04:00
2020-07-25 11:19:45 -04:00
- PureVPN
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| 🏁 `USER` | | | Your user ID |
| 🏁 `REGION` | | One of the [PureVPN regions ](https://support.purevpn.com/vpn-servers ) | VPN server region |
| `COUNTRY` | | One of the [PureVPN countries ](https://support.purevpn.com/vpn-servers ) | VPN server country |
| `CITY` | | One of the [PureVPN cities ](https://support.purevpn.com/vpn-servers ) | VPN server city |
2020-05-17 18:34:57 -04:00
### DNS over TLS
None of the following values are required.
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| `DOT` | `on` | `on` , `off` | Activate DNS over TLS with Unbound |
| `DOT_PROVIDERS` | `cloudflare` | `cloudflare` , `google` , `quad9` , `quadrant` , `cleanbrowsing` , `securedns` , `libredns` | Comma delimited list of DNS over TLS providers |
| `DOT_CACHING` | `on` | `on` , `off` | Unbound caching |
| `DOT_IPV6` | `off` | `on` , `off` | DNS IPv6 resolution |
| `DOT_PRIVATE_ADDRESS` | All private CIDRs ranges | | Comma separated list of CIDRs or single IP addresses Unbound won't resolve to. Note that the default setting prevents DNS rebinding |
| `DOT_VERBOSITY` | `1` | `0` to `5` | Unbound verbosity level |
| `DOT_VERBOSITY_DETAILS` | `0` | `0` to `4` | Unbound details verbosity level |
| `DOT_VALIDATION_LOGLEVEL` | `0` | `0` to `2` | Unbound validation log level |
| `DNS_UPDATE_PERIOD` | `24h` | i.e. `0` , `30s` , `5m` , `24h` | Period to update block lists and cryptographic files and restart Unbound. Set to `0` to deactivate updates |
| `BLOCK_MALICIOUS` | `on` | `on` , `off` | Block malicious hostnames and IPs with Unbound |
| `BLOCK_SURVEILLANCE` | `off` | `on` , `off` | Block surveillance hostnames and IPs with Unbound |
| `BLOCK_ADS` | `off` | `on` , `off` | Block ads hostnames and IPs with Unbound |
| `UNBLOCK` | |i.e. `domain1.com,x.domain2.co.uk` | Comma separated list of domain names to leave unblocked with Unbound |
2020-06-26 14:40:46 +00:00
| `DNS_PLAINTEXT_ADDRESS` | `1.1.1.1` | Any IP address | IP address to use as DNS resolver if `DOT` is `off` |
2020-07-11 23:51:53 +00:00
| `DNS_KEEP_NAMESERVER` | `off` | `on` or `off` | Keep the nameservers in /etc/resolv.conf untouched, but disabled DNS blocking features |
2020-05-17 18:34:57 -04:00
### Firewall
That one is important if you want to connect to the container from your LAN for example, using Shadowsocks or Tinyproxy.
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
2020-06-12 17:11:21 +00:00
| `FIREWALL` | `on` | `on` or `off` | Turn on or off the container built-in firewall. You should use it for **debugging purposes ** only. |
2020-05-17 18:34:57 -04:00
| `EXTRA_SUBNETS` | | i.e. `192.168.1.0/24,192.168.10.121,10.0.0.5/28` | Comma separated subnets allowed in the container firewall |
2020-07-20 02:07:13 +00:00
| `FIREWALL_VPN_INPUT_PORTS` | | i.e. `1000,8080` | Comma separated list of ports to allow from the VPN server side (useful for **vyprvpn ** port forwarding) |
2020-07-13 02:14:56 +00:00
| `FIREWALL_DEBUG` | `off` | `on` or `off` | Prints every firewall related command. You should use it for **debugging purposes ** only. |
2020-05-17 18:34:57 -04:00
### Shadowsocks
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
2020-07-08 15:19:56 +02:00
| `SHADOWSOCKS` | `off` | `on` , `off` | Enable the internal SOCKS5 proxy Shadowsocks |
2020-05-17 18:34:57 -04:00
| `SHADOWSOCKS_LOG` | `off` | `on` , `off` | Enable logging |
| `SHADOWSOCKS_PORT` | `8388` | `1024` to `65535` | Internal port number for Shadowsocks to listen on |
2020-07-08 15:19:56 +02:00
| `SHADOWSOCKS_PASSWORD` | | | Password to use to connect to Shadowsocks |
2020-05-17 18:34:57 -04:00
| `SHADOWSOCKS_METHOD` | `chacha20-ietf-poly1305` | One of [these ciphers ](https://shadowsocks.org/en/config/quick-guide.html ) | Method to use for Shadowsocks |
### Tinyproxy
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
2020-07-08 15:19:56 +02:00
| `TINYPROXY` | `off` | `on` , `off` | Enable the internal HTTP proxy tinyproxy |
2020-05-17 18:34:57 -04:00
| `TINYPROXY_LOG` | `Info` | `Info` , `Connect` , `Notice` , `Warning` , `Error` , `Critical` | Tinyproxy log level |
| `TINYPROXY_PORT` | `8888` | `1024` to `65535` | Internal port number for Tinyproxy to listen on |
2020-07-08 15:19:56 +02:00
| `TINYPROXY_USER` | | | Username to use to connect to Tinyproxy |
| `TINYPROXY_PASSWORD` | | | Password to use to connect to Tinyproxy |
2020-05-17 18:34:57 -04:00
### System
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| `TZ` | | i.e. `Europe/London` | Specify a timezone to use to have correct log times |
| `UID` | `1000` | | User ID to run as non root and for ownership of files written |
| `GID` | `1000` | | Group ID to run as non root and for ownership of files written |
2020-02-06 20:42:46 -05:00
2020-07-16 01:12:54 +00:00
### Other
| Variable | Default | Choices | Description |
| --- | --- | --- | --- |
| `PUBLICIP_PERIOD` | `12h` | Valid duration | Period to check for public IP address. Set to `0` to disable. |
2020-02-06 20:42:46 -05:00
## Connect to it
There are various ways to achieve this, depending on your use case.
2020-06-03 02:11:35 +00:00
- <details><summary>Connect containers in the same docker-compose.yml as Gluetun</summary><p>
2020-02-06 20:42:46 -05:00
2020-06-03 02:11:35 +00:00
Add `network_mode: "service:gluetun"` to your * docker-compose.yml * (no need for `depends_on` )
2020-02-06 20:42:46 -05:00
</p></details>
2020-06-03 02:11:35 +00:00
- <details><summary>Connect other containers to Gluetun</summary><p>
2020-02-06 20:42:46 -05:00
2020-06-03 02:11:35 +00:00
Add `--network=container:gluetun` when launching the container, provided Gluetun is already running
2020-02-06 20:42:46 -05:00
</p></details>
- <details><summary>Connect containers from another docker-compose.yml</summary><p>
2020-06-03 02:11:35 +00:00
Add `network_mode: "container:gluetun"` to your * docker-compose.yml * , provided Gluetun is already running
2020-02-06 20:42:46 -05:00
</p></details>
- <details><summary>Connect LAN devices through the built-in HTTP proxy * Tinyproxy * (i.e. with Chrome, Kodi, etc.)</summary><p>
You might want to use Shadowsocks instead which tunnels UDP as well as TCP, whereas Tinyproxy only tunnels TCP.
1. Setup a HTTP proxy client, such as [SwitchyOmega for Chrome ](https://chrome.google.com/webstore/detail/proxy-switchyomega/padekgcemlokbadohgkifijomclgjgif?hl=en )
2020-06-03 02:11:35 +00:00
1. Ensure the Gluetun container is launched with:
2020-02-06 20:42:46 -05:00
- port `8888` published `-p 8888:8888/tcp`
- your LAN subnet, i.e. `192.168.1.0/24` , set as `-e EXTRA_SUBNETS=192.168.1.0/24`
1. With your HTTP proxy client, connect to the Docker host (i.e. `192.168.1.10` ) on port `8888` . You need to enter your credentials if you set them with `TINYPROXY_USER` and `TINYPROXY_PASSWORD` .
1. If you set `TINYPROXY_LOG` to `Info` , more information will be logged in the Docker logs
</p></details>
- <details><summary>Connect LAN devices through the built-in SOCKS5 proxy * Shadowsocks * (per app, system wide, etc.)</summary><p>
1. Setup a SOCKS5 proxy client, there is a list of [ShadowSocks clients for **all platforms** ](https://shadowsocks.org/en/download/clients.html )
2020-06-03 02:11:35 +00:00
- **note** some clients do not tunnel UDP so your DNS queries will be done locally and not through Gluetun and its built in DNS over TLS
2020-02-06 20:42:46 -05:00
- Clients that support such UDP tunneling are, as far as I know:
- iOS: Potatso Lite
- OSX: ShadowsocksX
- Android: Shadowsocks by Max Lv
2020-06-03 02:11:35 +00:00
1. Ensure the Gluetun container is launched with:
2020-02-06 20:42:46 -05:00
- port `8388` published `-p 8388:8388/tcp -p 8388:8388/udp`
- your LAN subnet, i.e. `192.168.1.0/24` , set as `-e EXTRA_SUBNETS=192.168.1.0/24`
1. With your SOCKS5 proxy client
- Enter the Docker host (i.e. `192.168.1.10` ) as the server IP
- Enter port TCP (and UDP, if available) `8388` as the server port
- Use the password you have set with `SHADOWSOCKS_PASSWORD`
2020-03-29 20:06:27 -04:00
- Choose the encryption method/algorithm to the method you specified in `SHADOWSOCKS_METHOD`
2020-02-22 17:43:17 +00:00
1. If you set `SHADOWSOCKS_LOG` to `on` , (a lot) more information will be logged in the Docker logs
2020-02-06 20:42:46 -05:00
</p></details>
2020-06-03 02:11:35 +00:00
- <details><summary>Access ports of containers connected to Gluetun</summary><p>
2020-02-06 20:42:46 -05:00
2020-06-03 02:11:35 +00:00
In example, to access port `8000` of container `xyz` and `9000` of container `abc` connected to Gluetun,
publish ports `8000` and `9000` for the Gluetun container and access them as you would with any other container
2020-02-06 20:42:46 -05:00
</p></details>
2020-06-03 02:11:35 +00:00
- <details><summary>Access ports of containers connected to Gluetun, all in the same docker-compose.yml</summary><p>
2020-02-06 20:42:46 -05:00
2020-06-03 02:11:35 +00:00
In example, to access port `8000` of container `xyz` and `9000` of container `abc` connected to Gluetun, publish port `8000` and `9000` for the Gluetun container.
2020-02-06 20:42:46 -05:00
The docker-compose.yml file would look like:
```yml
version: '3.7'
services:
2020-06-03 02:11:35 +00:00
gluetun:
2020-02-06 20:42:46 -05:00
image: qmcgaw/private-internet-access
2020-06-03 02:11:35 +00:00
container_name: gluetun
2020-02-06 20:42:46 -05:00
cap_add:
- NET_ADMIN
environment:
- USER=js89ds7
- PASSWORD=8fd9s239G
ports:
- 8000:8000/tcp
- 9000:9000/tcp
abc:
image: abc
container_name: abc
2020-06-03 02:11:35 +00:00
network_mode: "service:gluetun"
2020-02-06 20:42:46 -05:00
xyz:
image: xyz
container_name: xyz
2020-06-03 02:11:35 +00:00
network_mode: "service:gluetun"
2020-02-06 20:42:46 -05:00
```
</p></details>
2020-02-22 17:15:42 +00:00
## Private Internet Access port forwarding
2020-02-06 20:42:46 -05:00
2020-02-22 17:15:42 +00:00
Note that [not all regions support port forwarding ](https://www.privateinternetaccess.com/helpdesk/kb/articles/how-do-i-enable-port-forwarding-on-my-vpn ).
2020-02-06 20:42:46 -05:00
2020-06-03 02:11:35 +00:00
When `PORT_FORWARDING=on` , a port will be forwarded on the VPN server side and written to the file specified by `PORT_FORWARDING_STATUS_FILE=/forwarded_port` .
2020-02-22 17:15:42 +00:00
It can be useful to mount this file as a volume to read it from other containers, for example to configure a torrenting client.
2020-02-06 20:42:46 -05:00
2020-07-25 11:55:35 -04:00
You can also use the HTTP control server (see below) to get the port forwarded.
2020-04-30 23:41:57 +00:00
2020-07-25 11:55:35 -04:00
## HTTP control server
2020-04-30 23:41:57 +00:00
2020-07-26 12:07:06 +00:00
See [its Wiki page ](https://github.com/qdm12/gluetun/wiki/HTTP-control-server )
2020-04-30 23:41:57 +00:00
2020-04-12 13:42:41 +00:00
## Development and contributing
2020-03-25 18:19:57 -04:00
2020-07-26 12:07:06 +00:00
- Contribute with code: see [the Wiki ](https://github.com/qdm12/gluetun/wiki/Contributing ).
- [The list of existing contributors 👍 ](https://github.com/qdm12/gluetun/blob/master/.github/CONTRIBUTING.md#Contributors )
- [Github workflows ](https://github.com/qdm12/gluetun/actions ) to know what's building
- [List of issues and feature requests ](https://github.com/qdm12/gluetun/issues )
2020-02-22 17:35:50 +00:00
2020-02-06 20:42:46 -05:00
## License
2020-07-26 12:07:06 +00:00
This repository is under an [MIT license ](https://github.com/qdm12/gluetun/master/license )
2020-04-13 00:32:57 +00:00
## Support
Sponsor me on [Github ](https://github.com/sponsors/qdm12 ), donate to [paypal.me/qmcgaw ](https://www.paypal.me/qmcgaw ) or subscribe to a VPN provider through one of my affiliate links:
2020-07-26 12:07:06 +00:00
[](https://github.com/sponsors/qdm12)
[](https://www.paypal.me/qmcgaw)
2020-04-13 00:32:57 +00:00
2020-07-26 12:07:06 +00:00
[](https://windscribe.com/?affid=mh7nyafu)
2020-04-13 00:32:57 +00:00
2020-07-26 12:07:06 +00:00
Feel also free to have a look at [the Kanban board ](https://github.com/qdm12/gluetun/projects/1 ) and [contribute ](#Development-and-contributing ) to the code or the issues discussion.
2020-04-15 12:33:50 +00:00
2020-06-08 08:31:18 -04:00
Many thanks to @Frepke , @Ralph521 , G. Mendez, M. Otmar Weber, J. Perez and A. Cooper for supporting me financially 🥇👍