docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=vyprvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_REGIONS=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=vyprvpn
- OPENVPN_USER=abc
- OPENVPN_PASSWORD=abc
- SERVER_REGIONS=Netherlands
💁 To use with Wireguard, see the custom provider Wireguard section.
VPN_SERVICE_PROVIDER=vyprvpn
OPENVPN_USER
OPENVPN_PASSWORD
SERVER_REGIONS
: Comma separated list of regionsSERVER_HOSTNAMES
: Comma separated list of server hostnames
By default, VyprVPN does not forward any port.
You need to disable the NAT firewall in the Manage services section of your account at account.vyprvpn.com (source).
All the ports will then be forwarded to you, so it's like you are running alone on the VPN server.
Therefore, you only need to allow these ports through the gluetun firewall by setting the ports you need in FIREWALL_VPN_INPUT_PORTS
.
For example FIREWALL_VPN_INPUT_PORTS=8000,9000
.
To see a list of servers available, list the VPN servers with Gluetun.