# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
💁 Your credentials are NO LONGER your email+password, it is now your service credentials.
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN -e VPN_SERVICE_PROVIDER=nordvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=nordvpn
- VPN_TYPE=openvpn # or wireguard
- OPENVPN_USER=abc
- OPENVPN_PASSWORD=abc
- SERVER_COUNTRIES=Netherlands
VPN_SERVICE_PROVIDER=nordvpn
OPENVPN_USER
OPENVPN_PASSWORD
WIREGUARD_PRIVATE_KEY
SERVER_COUNTRIES
: Comma separated list of countriesSERVER_REGIONS
: Comma separated list of regionsSERVER_CITIES
: Comma separated list of server citiesSERVER_HOSTNAMES
: Comma separated list of server hostnamesSERVER_CATEGORIES
: Comma separated list of server categories
Update 2023-09-24: you need to retrieve it from their web interface in manual setup section, see this comment.
The list of servers for NordVPN is available in the source code.
The table of servers cannot be put here unfortunately as there are too many servers and the Github markdown engine then fails.