WireGuardUI - Secure tunnel management
5.2K
Lire ceci en franΓ§aisβ .
WireGuard UI is a web interface for managing a WireGuard server without
touching configuration files directly (wg0.conf, keys, iptables rules).
Peer management, configuration export, OIDC authentication, audit log β all
in a single Docker image.
.conf file and QR codeGET /api/health)linux/amd64 / linux/arm64 (Raspberry Pi, Apple Silicon)FastAPI (async) backend + Angular (Signals, zoneless) frontend β see the Architectureβ page for the technical stack details.
docker run -d \
--name wireguard-ui \
--cap-add NET_ADMIN \
--sysctl net.ipv4.ip_forward=1 \
--sysctl net.ipv4.conf.all.src_valid_mark=1 \
-p 8000:8000 \
-p 51820:51820/udp \
-v wg_config:/etc/wireguard \
-v wireguard-ui_data:/var/lib/wireguard-ui \
cyrius44/wireguard-ui:latest
An admin password is generated automatically on first startup and
shown only once in the logs β the default user is admin:
docker logs wireguard-ui | grep -A4 "Initial admin account"
Open http://localhost:8000β and log in with admin and this password.
Or with Docker Compose:
services:
wireguard-ui:
image: cyrius44/wireguard-ui:latest
container_name: wireguard-ui
restart: unless-stopped
cap_add:
- NET_ADMIN
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
ports:
- "8000:8000"
- "51820:51820/udp"
volumes:
- wg_config:/etc/wireguard
- wireguard-ui_data:/var/lib/wireguard-ui
volumes:
wg_config:
wireguard-ui_data:
Note:
SECRET_KEYis optional β if absent, the application automatically generates a random key and persists it inwireguard-ui_data. In production, set it explicitly to share sessions across multiple replicas or survive a loss of the data volume.
For the full guide (local installation without Docker, environment variables, production recommendations) see Getting startedβ .
The full documentation β architecture, environment variable reference, routers & services, deployment β is published at cyr-ius.github.io/wireguard-uiβ .
| Looking for... | Go to... |
|---|---|
| All environment variables | Environment variablesβ |
| Local installation (dev, no Docker) | Local installationβ |
| Backend / frontend / database architecture | Architectureβ |
| Routers, business services, authentication | Functions & APIβ |
| Deployment & production recommendations | Deploymentβ |
MIT β see LICENSEβ for details.
Author: @cyr-iusβ β Sponsor: GitHub Sponsorsβ
Content type
Image
Digest
sha256:71b5def29β¦
Size
106.3 MB
Last updated
1 day ago
docker pull cyrius44/wireguard-ui