Network and DNS
How to install wg-easy on your home server
wg-easy runs a WireGuard VPN with a web page to add phones and laptops. The web page is on port 51821. It has steps for Debian, TrueNAS and Proxmox.
What the steps install, and how it connects
Connects to it
- Phones and laptops51820/udp
- Browserthrough your HTTPS reverse proxy (step 12)51821/tcp
Your server, in Docker
wg-easy containers
From the project’s compose file, downloaded in step 9
- wg-easy (WireGuard VPN and its web page)
- 51820/udpWireGuard VPNopened by the project’s compose file
- 51821/tcpweb pageopened by the project’s compose file
Its data on the server
/docker-compose.ymletc/ docker/ containers/ wg-easy
UDP port 51820 must be open in the firewall. On TrueNAS the app’s web page is on 30058/tcp. Drawn from step 9 of the Debian + Docker steps. Ports are the ones in those steps and in the table below.
The diagram in words
The Debian + Docker steps install the wg-easy containers from the project’s compose file, with ports 51820/udp and 51821/tcp. Connects to it: Phones and laptops on 51820/udp; Browser through your HTTPS reverse proxy (step 12) to 51821/tcp. Its data: /etc/docker/containers/wg-easy (docker-compose.yml).
What it needs
| Ports | 51820/udp, 51821/tcp (web page)TrueNAS app web page: 30058/tcp |
|---|---|
| Memory | Not stated by the project (read 25 Nov 2026) |
| CPU | No figure. The project lists the supported architectures: x86_64 and arm64.wg-easy.github.io/wg-easy/latest/examples/tutorials/basic-installation/ read 25 Nov 2026 |
| Disk | Not stated by the project (read 25 Nov 2026) |
| Licence | AGPL-3.0 |
| Project page | wg-easy/wg-easy |
Ports are the project's defaults. Memory and disk figures are the project's own, with the page and the date read. Estimates only.
The one thing to know before you start
UDP port 51820 must be open in the firewall, and the server needs a domain name or a public IP address. The web page needs HTTPS. Without a reverse proxy you must set INSECURE to true, and the project calls that insecure.
Install steps
These steps follow the project's own pages and have not been tried on real hardware yet.
They start from a server that runs Docker: set up an old laptop or PC first. Docker or bare metal for wg-easy: what each method needs.
- WARNINGDo not run these steps on a server with a public IP address. Anyone on the internet could then reach the apps.
- WARNINGDo not forward these ports on your router, unless a step tells you to. The ports would then be open to the internet.
- WARNINGDo not trust ufw to close a port that Docker opens. Docker bypasses the ufw rules. Read the Docker page on firewalls.
Debian + Docker
checking Some details are still being checked.
- WARNINGOpen UDP port 51820 in the firewall. wg-easy needs it, and a domain name or public IP address.
- WARNINGUse HTTPS for the web page. Without a reverse proxy, you must set INSECURE to true, and the wg-easy page calls that insecure.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf you have no domain name or public IP address, stop.
Open UDP port 51820 in your firewall.
Type this command to make the folder.
sudo mkdir -p /etc/docker/containers/wg-easyType this command to get the compose file.
sudo curl -o /etc/docker/containers/wg-easy/docker-compose.yml https://raw.githubusercontent.com/wg-easy/wg-easy/master/docker-compose.ymlType this command to enter the folder.
cd /etc/docker/containers/wg-easyType this command to start wg-easy.
docker compose up -dSet up a reverse proxy for HTTPS. The wg-easy page shows Traefik and Caddy.
Open https://<your domain> in a browser.
TrueNAS app
checking Some details are still being checked.
- WARNINGThis app is in the stable train. iXsystems supports it.
Open Apps > Discover Apps.
Apps > Discover Apps > search 'wg-easy' > Install (train: stable)Search for 'wg-easy'.
Click Install.
Open http://<server address>:30058 in a browser.
Proxmox VE (VM + Docker)
checking Some details are still being checked.
- WARNINGUse a VM, not an LXC container. Proxmox says: "nesting containers inside a Proxmox QEMU VM remains a recommended practice".
- WARNINGOpen UDP port 51820 in the firewall. wg-easy needs it, and a domain name or public IP address.
- WARNINGUse HTTPS for the web page. Without a reverse proxy, you must set INSECURE to true, and the wg-easy page calls that insecure.
Create a Debian VM in Proxmox VE.
Sign in to the VM.
Install Docker Engine with the Compose plugin. Use the Docker page for Debian.
Type this command to create the docker group. If the group exists, go to the next step.
sudo groupadd dockerType this command to add your user to the docker group.
sudo usermod -aG docker $USERLog out and log in again so that the group change takes effect.
Type this command to test Docker.
docker run hello-worldIf you have no domain name or public IP address, stop.
Open UDP port 51820 in your firewall.
Type this command to make the folder.
sudo mkdir -p /etc/docker/containers/wg-easyType this command to get the compose file.
sudo curl -o /etc/docker/containers/wg-easy/docker-compose.yml https://raw.githubusercontent.com/wg-easy/wg-easy/master/docker-compose.ymlType this command to enter the folder.
cd /etc/docker/containers/wg-easyType this command to start wg-easy.
docker compose up -dSet up a reverse proxy for HTTPS. The wg-easy page shows Traefik and Caddy.
Open https://<your domain> in a browser.
Licences and credits: Sources and licences.
What will it cost to run?
This page gives no power figure for wg-easy. The planner adds up the box it runs on, where the power goes splits that figure part by part, and the guide gives idle watts and a yearly cost at your own price.
Plan a VPN and ad-blocking box in the planner, or read the home server hardware guide.
Related apps
- Pi-hole: DNS filtering on the same box
- Vaultwarden: passwords on the same box