docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER="perfect privacy" \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_CITIES=Amsterdam qmcgaw/gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=perfect privacy
- OPENVPN_USER=abc
- OPENVPN_PASSWORD=abc
- SERVER_CITIES=Amsterdam
VPN_SERVICE_PROVIDER=perfect privacy
OPENVPN_USER
OPENVPN_PASSWORD
SERVER_CITIES
: Comma separated list of cities
Set VPN_PORT_FORWARDING=on
and the 3 ports forwarded will be logged out as well as available via the http control server.
To see a list of servers available, list the VPN servers with Gluetun.