docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=airvpn \
-e VPN_TYPE=wireguard \
-e WIREGUARD_PRIVATE_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c= \
-e WIREGUARD_PRESHARED_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c= \
-e WIREGUARD_ADDRESSES=10.99.99.99/32,ff:ff:ff...:ff/128 \
qmcgaw/gluetun
version: "3"
services:
gluetun:
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
environment:
- VPN_SERVICE_PROVIDER=airvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c=
- WIREGUARD_PRESHARED_KEY=yCbHtKAgJASnJs2S/aZsjag9Fy04csmR4qDUDkJgX2c=
- WIREGUARD_ADDRESSES=10.99.99.99/32,ff:ff:ff...:ff/128
- SERVER_COUNTRIES=Netherlands
WIREGUARD_ADDRESSES
may only contain an IPv6 address (such as ff:ff.../128
) if your container setup supports IPv6. To do so, see the IPv6 document. Otherwise, remove the IPv6 address from WIREGUARD_ADDRESSES
.
docker run -it --rm --cap-add=NET_ADMIN --device /dev/net/tun \
-e VPN_SERVICE_PROVIDER=airvpn \
-v /yourpath:/gluetun \
-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=airvpn
- SERVER_COUNTRIES=Netherlands
volumes:
- ./gluetun:/gluetun
-
VPN_SERVICE_PROVIDER=airvpn
-
For Wireguard:
VPN_TYPE=wireguard
WIREGUARD_PRIVATE_KEY
WIREGUARD_PRESHARED_KEY
WIREGUARD_ADDRESSES
You can get each of these Wireguard values you need from the Config Generator in the AirVPN Client Area.
SERVER_COUNTRIES
: Comma separated list of countriesSERVER_REGIONS
: Comma separated list of regionsSERVER_CITIES
: Comma separated list of citiesSERVER_NAMES
: Comma separated list of server namesSERVER_HOSTNAMES
: Comma separated list of server hostnames
The list of servers for AirVPN is available in the source code.
The table of servers cannot be put here unfortunately as there are too many servers and the Github markdown engine then fails.
If you want to use VPN server side port forwarding:
- Log in your AirVPN account at airvpn.org/client
- Obtain a port from airvpn.org/ports
- Add the port to the environment variable
FIREWALL_VPN_INPUT_PORTS