To list the VPN servers available for a particular VPN provider using your current Gluetun version, use:
docker run --rm -v /yourpath:/gluetun qmcgaw/gluetun format-servers -yourprovider
where:
/yourpath
is the path to your bind mounted directoryyourprovider
is your VPN provider in lowercase without quotes, for exampleprotonvpn
orprivate-internet-access
.
This will list the servers in Markdown format, for example:
| Country | City | Hostname | TCP | UDP |
| --- | --- | --- | --- | --- |
| Albania | | `albania-ca-version-2.expressnetw.com` | ❌ | ✅ |
...
| Vietnam | | `vietnam-ca-version-2.expressnetw.com` | ❌ | ✅ |
This is useful to know what are the currently available server filter options which can be used.
For certain providers such as NordVPN, the list of servers is very long and you can use the --output=/gluetun/servers-list.md
flag to write to a file.
The VPN servers list used by Gluetun is the merged list from:
- the built-in Gluetun servers list
- your locally bind mounted
/gluetun/servers.json
file, which reflects the built-in servers list by default
The built-in servers list can become outdated.
You can update your servers list /gluetun/servers.json
, using the built-in update mechanisms.
By default this is disabled.
You can set the environment variable UPDATER_PERIOD
to 24h
for example. Every 24 hours, after the tunnel is ready, the container will update the servers information for the currently in-use VPN service provider. This has this advantage the update is done through the VPN and using DNS over TLS.
This periodic update can be extended to update data for other providers by setting them as a comma separated value in the environment variable UPDATER_VPN_SERVICE_PROVIDERS
.
💁 This technique is useful in case all the built-in servers data is now outdated, and you can no longer connect to any VPN server. Otherwise you should prefer using the periodic update.
The command is of the form:
docker run --rm -v /yourpath:/gluetun qmcgaw/gluetun update -enduser -providers yourprovider
where:
/yourpath
is the path to your bind mounted directoryyourprovider
is your VPN provider, for exampleprotonvpn
.
You can also run this with docker-compose
using:
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
# ...
volumes:
/yourpath:/gluetun
command: update -enduser -providers mullvad