Homelab Plan

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

  • /etc/docker/containers/wg-easydocker-compose.yml

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

Ports51820/udp, 51821/tcp (web page)TrueNAS app web page: 30058/tcp
MemoryNot stated by the project (read 25 Nov 2026)
CPUNo 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
DiskNot stated by the project (read 25 Nov 2026)
LicenceAGPL-3.0
Project pagewg-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.

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.
  1. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  2. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  3. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  4. Log out and log in again so that the group change takes effect.

  5. Type this command to test Docker.

    docker run hello-world
  6. If you have no domain name or public IP address, stop.

  7. Open UDP port 51820 in your firewall.

  8. Type this command to make the folder.

    sudo mkdir -p /etc/docker/containers/wg-easy
  9. Type 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.yml
  10. Type this command to enter the folder.

    cd /etc/docker/containers/wg-easy
  11. Type this command to start wg-easy.

    docker compose up -d
  12. Set up a reverse proxy for HTTPS. The wg-easy page shows Traefik and Caddy.

  13. 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.
  1. Open Apps > Discover Apps.

    Apps > Discover Apps > search 'wg-easy' > Install (train: stable)
  2. Search for 'wg-easy'.

  3. Click Install.

  4. 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.
  1. Create a Debian VM in Proxmox VE.

  2. Sign in to the VM.

  3. Install Docker Engine with the Compose plugin. Use the Docker page for Debian.

  4. Type this command to create the docker group. If the group exists, go to the next step.

    sudo groupadd docker
  5. Type this command to add your user to the docker group.

    sudo usermod -aG docker $USER
  6. Log out and log in again so that the group change takes effect.

  7. Type this command to test Docker.

    docker run hello-world
  8. If you have no domain name or public IP address, stop.

  9. Open UDP port 51820 in your firewall.

  10. Type this command to make the folder.

    sudo mkdir -p /etc/docker/containers/wg-easy
  11. Type 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.yml
  12. Type this command to enter the folder.

    cd /etc/docker/containers/wg-easy
  13. Type this command to start wg-easy.

    docker compose up -d
  14. Set up a reverse proxy for HTTPS. The wg-easy page shows Traefik and Caddy.

  15. 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

All 18 apps