Skip to content

Wireguard

Logo

Description

WireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography. It aims to be faster, simpler, leaner, and more useful than IPsec, while avoiding the massive headache. It intends to be considerably more performant than OpenVPN. WireGuard is designed as a general purpose VPN for running on embedded interfaces and super computers alike, fit for many different circumstances. Initially released for the Linux kernel, it is now cross-platform (Windows, macOS, BSD, iOS, Android) and widely deployable. It is currently under heavy development, but already it might be regarded as the most secure, easiest to use, and simplest VPN solution in the industry.

Image

linuxserver/wireguard:latest

Categories

  • Vpnserver

Ports

  • 51820:51820/udp

Volumes

ContainerBind
/config/opt/appdata/wireguard/config
/lib/modules/lib/modules

Environment Variables

NameLabelDefaultDescription
PUIDPUID1024for GroupID
PGIDPGID100for UserID
TZTZEurope/AmsterdamSpecify a timezone to use for example Europe/Amsterdam
SERVERURLSERVERURLwireguard.domain.comExternal IP or domain name for docker host. Used in server mode. If set to `auto`, the container will try to determine and set the external IP automatically
SERVERPORTSERVERPORT51820External port for docker host. Used in server mode.
PEERSPEERS1Number of peers to create confs for. Required for server mode. Can also be a list of names: `myPC,myPhone,myTablet` (alphanumeric only)
PEERDNSPEERDNSautoDNS server set in peer/client configs (can be set as `8.8.8.8`). Used in server mode. Defaults to `auto`, which uses wireguard docker host's DNS via included CoreDNS forward.
INTERNAL_SUBNETINTERNAL_SUBNET10.13.13.0Internal subnet for the wireguard and server and peers (only change if it clashes). Used in server mode.
ALLOWEDIPSALLOWEDIPS0.0.0.0/0The IPs/Ranges that the peers will be able to reach using the VPN connection. If not specified the default value is: '0.0.0.0/0, ::0/0' This will cause ALL traffic to route through the VPN, if you want split tunneling, set this to only the IPs you would like to use the tunnel AND the ip of the server's WG ip, such as 10.13.13.1.

Labels

KeyValue
traefik.enabletrue
traefik.http.routers.wireguard.ruleHost(`wireguard.{$TRAEFIK_INGRESS_DOMAIN}`)
traefik.http.routers.wireguard.entrypointshttps
traefik.http.services.wireguard.loadbalancer.server.port3000
traefik.http.routers.wireguard.tlstrue
traefik.http.routers.wireguard.tls.certresolverdefault
traefik.http.routers.wireguard.middlewarestraefik-forward-auth
mafl.enabletrue
mafl.titleWireguard
mafl.descriptionWireGuard® is an extremely simple yet fast and modern VPN that utilizes state-of-the-art cryptography.
mafl.linkhttps://wireguard.{$TRAEFIK_INGRESS_DOMAIN}
mafl.icon.wraptrue
mafl.icon.color#007acc
mafl.status.enabledtrue
mafl.status.interval60
mafl.groupVpnserver
mafl.icon.urlhttps://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Logo_of_WireGuard.png/320px-Logo_of_WireGuard.png

Licensed under the MIT License. Free for all use cases. For enterprise or academic support, please reach out to us.