Skip to content

Multi VPN Setup

engageub edited this page Jan 12, 2025 · 1 revision

To utilize multiple VPNs, you must use the test branch and enable VPNs by setting USE_VPNS=true in the properties.conf file.

Example format for vpns.txt file.

-e VPN_SERVICE_PROVIDER=nordvpn -e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc -e SERVER_COUNTRIES=Netherlands
-e VPN_SERVICE_PROVIDER=protonvpn -e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc -e SERVER_COUNTRIES=Netherlands
-e VPN_SERVICE_PROVIDER=purevpn -e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc -e SERVER_COUNTRIES=Netherlands
-e VPN_SERVICE_PROVIDER=nordvpn -e VPN_TYPE=wireguard -e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= -e SERVER_COUNTRIES=Netherlands 
  • Each line in the vpns.txt file represents a single VPN connection.
  • Use only environment variables that include the -e flag.
  • For the appropriate environment variables for each VPN provider, refer to the Gluetun Providers Wiki.