# OpenVPN
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=windscribe \
-e VPN_TYPE=openvpn \
-e OPENVPN_USER=abc -e OPENVPN_PASSWORD=abc \
-e SERVER_REGIONS=Netherlands qmcgaw/gluetun
# Wireguard
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=windscribe \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU= \
-e WIREGUARD_ADDRESSES="10.64.222.21/32" \
-e WIREGUARD_PRESHARED_KEY= \
-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=windscribe
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=wOEI9rqqbDwnN8/Bpp22sVz48T71vJ4fYmFWujulwUU=
- WIREGUARD_ADDRESSES=10.64.222.21/32
- WIREGUARD_PRESHARED_KEY=
- SERVER_REGIONS=Netherlands
VPN_SERVICE_PROVIDER=windscribe
- For "Build a Plan" subscriptions, you need to set
SERVER_REGIONS
to the region(s) you have access to. For example,SERVER_REGIONS=Sweden,Italy
.
OPENVPN_USER
: Your username (get it from a generated config file from fra.windscribe.com/getconfig/openvpn)OPENVPN_PASSWORD
: Your password (get it from a generated config file from fra.windscribe.com/getconfig/openvpn)
WIREGUARD_PRIVATE_KEY
is your 32 bytes key in base64 format. Note this is specific by user and the same for all servers.WIREGUARD_ADDRESSES
is your IP network interface address in the formatxx.xx.xx.xx/xx
. Note this is specific by user and the same for all servers.WIREGUARD_PRESHARED_KEY
is your optional preshared key
SERVER_REGIONS
: Comma separated list of regionsSERVER_CITIES
: Comma separated list of citiesSERVER_HOSTNAMES
: Comma separated list of server hostnamesOPENVPN_ENDPOINT_PORT
: Custom OpenVPN server endpoint port to use, see this list of portsWIREGUARD_ENDPOINT_PORT
: Custom Wireguard server endpoint port to use, which can be one of:53
,80
,123
,443
,1194
,65142
- Follow the Windscribe instructions
- In your container configuration, set
FIREWALL_VPN_INPUT_PORTS
to the port you have been assigned, for example:FIREWALL_VPN_INPUT_PORTS=8099
To see a list of servers available, list the VPN servers with Gluetun.