Skip to content

Latest commit

 

History

History
65 lines (50 loc) · 1.87 KB

fastestvpn.md

File metadata and controls

65 lines (50 loc) · 1.87 KB

FastestVPN

TLDR

# 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

Required environment variables

  • VPN_SERVICE_PROVIDER=fastestvpn

OpenVPN only

  • OPENVPN_USER
  • OPENVPN_PASSWORD

Wireguard only

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 the PrivateKey field value in the Wireguard configuration file.
  • WIREGUARD_ADDRESSES is the IP prefix to assign to the Wireguard interface, corresponding to the Address field value in the Wireguard configuration file.

Optional environment variables

  • SERVER_COUNTRIES: Comma separated list of countries
  • SERVER_CITIES: Comma separated list of cities
  • SERVER_HOSTNAMES: Comma separated list of server hostnames

Servers

To see a list of servers available, list the VPN servers with Gluetun.