# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=fastestvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=fastestvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e WIREGUARD_ADDRESSES="10.64.222.21/32" \
-e SERVER_COUNTRIES=Netherlands qmcgaw/gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=fastestvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU=
- WIREGUARD_ADDRESSES=10.64.222.21/32
- SERVER_COUNTRIES=Netherlands
VPN_SERVICE_PROVIDER=fastestvpn
OPENVPN_USER
OPENVPN_PASSWORD
You can find both values below in the Wireguard configuration file provided by FastestVPN, which you can obtain by asking their support at [email protected].
WIREGUARD_PRIVATE_KEY
is your 32 bytes key in base64 format. It corresponds to thePrivateKey
field value in the Wireguard configuration file.WIREGUARD_ADDRESSES
is the IP prefix to assign to the Wireguard interface, corresponding to theAddress
field value in the Wireguard configuration file.
SERVER_COUNTRIES
: Comma separated list of countriesSERVER_CITIES
: Comma separated list of citiesSERVER_HOSTNAMES
: Comma separated list of server hostnames
To see a list of servers available, list the VPN servers with Gluetun.