On this page
- When is WGDashboard the right tool?
- What should be in place first?
- How do you install WGDashboard?
- How do you lock the panel to localhost and run it under systemd?
- How do you serve it over HTTPS?
- What should you change on first sign-in?
- How do you create an interface and add peers?
- How do you update the panel and check it is healthy?
- Questions
When is WGDashboard the right tool?
WGDashboard fits a server that runs more than one WireGuard interface, or one interface shared by many people, because it reads and edits the normal wg-quick files instead of hiding them inside a container. You can still manage the same tunnels from the shell, and the panel picks up your changes. Compared with wg-easy, it offers more per-peer detail (data usage, scheduled jobs that restrict a peer after a date or a transfer limit, share links) at the cost of a Python app installed directly on the host. If you only need a single tunnel for yourself, the manual WireGuard setup is lighter.
What should be in place first?
Start from Ubuntu 24.04, Ubuntu 22.04, Debian 12 or Debian 13 with a sudo user and a DNS name such as wgd.example.net pointing at 198.51.100.24 (and the AAAA record at 2001:db8:4f2a::24). Install the packages WGDashboard expects:
sudo apt update
sudo apt install -y git wireguard-tools net-tools python3 python3-venv python3-pip qrencode
python3 --version
wg --versionThe panel needs Python 3.10 or newer, which all four releases ship. Forwarding has to be on for clients to browse through the server; reuse the sysctl file from the manual guide:
printf 'net.ipv4.ip_forward = 1\nnet.ipv6.conf.all.forwarding = 1\n' | sudo tee /etc/sysctl.d/99-wireguard.conf
sudo sysctl --systemHow do you install WGDashboard?
The project ships a shell script that creates a Python virtual environment, installs the dependencies and starts the web server with gunicorn. Clone it into /opt and run the installer as root:
cd /opt
sudo git clone https://github.com/WGDashboard/WGDashboard.git
cd /opt/WGDashboard/src
sudo chmod +x wgd.sh
sudo ./wgd.sh install
sudo ./wgd.sh startThe first start writes wg-dashboard.ini next to the script. Confirm the listener:
ss -ltnp | grep 10086The address shown is 0.0.0.0:10086 by default. Before going further, stop the panel and move it to loopback.
How do you lock the panel to localhost and run it under systemd?
Edit the [Server] section of /opt/WGDashboard/src/wg-dashboard.ini so that only the local reverse proxy can connect:
[Server]
app_ip = 127.0.0.1
app_port = 10086
wg_conf_path = /etc/wireguardThen create /etc/systemd/system/wg-dashboard.service so it survives reboots:
[Unit]
Description=WGDashboard
After=network-online.target
Wants=network-online.target
[Service]
Type=forking
WorkingDirectory=/opt/WGDashboard/src
PIDFile=/opt/WGDashboard/src/gunicorn.pid
ExecStart=/opt/WGDashboard/src/wgd.sh start
ExecStop=/opt/WGDashboard/src/wgd.sh stop
ExecReload=/opt/WGDashboard/src/wgd.sh restart
Restart=always
[Install]
WantedBy=multi-user.targetsudo ./wgd.sh stop
sudo systemctl daemon-reload
sudo systemctl enable --now wg-dashboard
systemctl status wg-dashboard --no-pager
ss -ltnp | grep 10086The listener should now read 127.0.0.1:10086.
How do you serve it over HTTPS?
A two-line Caddy site gives the panel a trusted certificate. Install Caddy with the Caddy HTTPS tutorial and add to /etc/caddy/Caddyfile:
wgd.example.net {
reverse_proxy 127.0.0.1:10086
}sudo systemctl reload caddy
sudo ufw allow OpenSSH
sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 51820/udp
sudo ufw route allow in on wg0 out on eth0
sudo ufw enableReplace eth0 with your public interface from ip route show default. Port 10086 is never opened in the firewall, so the only way in is through Caddy.
What should you change on first sign-in?
Sign in at https://wgd.example.net with the default admin / admin, then change both the username and the password immediately under Settings. In the same area, enable two-factor authentication and scan the code with any TOTP app. While you are there, set the Peer Remote Endpoint to wgd.example.net or 198.51.100.24; that value is written into every client profile the panel produces, so a wrong one breaks every download.
How do you create an interface and add peers?
Create a configuration from the panel and give it masquerade rules, or let it adopt an existing wg0.conf. In the panel, add a configuration named wg0, listen port 51820, address 10.8.0.1/24, fd42:42:42::1/64, and fill the PostUp and PostDown fields with the nftables commands from the WireGuard server guide:
PostUp: nft -f /etc/wireguard/nat.nft
PostDown: nft delete table inet wgnatSwitch the configuration on, open it, and use Add Peers. The panel assigns the next free addresses, generates keys and offers a QR code, a downloadable file and an optional share link with an expiry. Tick the bulk option to create twenty peers in one go for a team. Each peer card shows the latest handshake and data used, and the jobs tab can restrict a peer automatically once it passes a transfer total or a date.
How do you update the panel and check it is healthy?
The script has an update command that pulls the latest release and refreshes the virtual environment:
cd /opt/WGDashboard/src
sudo ./wgd.sh update
sudo systemctl restart wg-dashboard
journalctl -u wg-dashboard -e --no-pagerRead the release notes first, since some major versions change the settings layout. Keep /etc/wireguard and /opt/WGDashboard/src/db in your backups: the first holds the tunnel keys, the second holds the panel accounts and peer metadata. If the page returns 502, the service has stopped; systemctl status wg-dashboard and the journal show why, often a Python dependency that failed during an update and is fixed by running the install step again.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about WGDashboard for WireGuard
What is the default WGDashboard login?
Username admin and password admin. Change both in Settings on first sign-in, and enable two-factor authentication.
Can WGDashboard manage a tunnel I already built by hand?
Yes. It reads every .conf file in /etc/wireguard, so an existing wg0 appears in the list and can be edited from the panel.
Is there a Docker version?
The project also publishes a container image. This guide uses the native install because the panel then edits the host files directly and needs no extra capabilities.
Why does the panel show a peer as offline while it works?
WireGuard has no connected state, only the time of the last handshake. A peer that sends nothing for a few minutes looks idle until traffic resumes; PersistentKeepalive = 25 in the client keeps it fresh.
Which plan fits WGDashboard?
The panel and gunicorn use some memory, so A1-2 with 1 vCPU, 2 GB RAM, 50 GB NVMe is a comfortable start. Pick a bigger line if many users stream through the tunnel and need more of the monthly transfer.
More in VPN and private DNS
- WireGuard VPN server (manual setup)
- wg-easy WireGuard web UI
- OpenVPN server with easy-rsa
- Pritunl VPN server
- OpenConnect VPN server (ocserv)
- AdGuard Home DNS filter
- Pi-hole DNS sinkhole
- Unbound validating resolver
- Technitium DNS Server
- IPsec VPN with strongSwan
- Squid forward proxy with authentication
- Shadowsocks proxy server
- Authoritative DNS with BIND 9