HeadlinesBriefing favicon HeadlinesBriefing.com

Wg-admin: Web UI for Existing WireGuard Host

Hacker News •
×

A focused web UI for a WireGuard host already running. It reads files in /etc/wireguard, lets you add/edit/remove peers, and applies changes with wg syncconf so the interface does not bounce. wg-admin does not install WireGuard, replace wg-quick, or rewrite PostUp/NAT lines.

Install on a host that already runs WireGuard:

git clone https://github.com/logimaxx/wg-admin.git

cd wg-admin

sudo ./install.sh

Then open http://127.0.0.1:8080 and set an admin password. Every *.conf already in /etc/wireguard is listed and managed in place. To remove the service (WireGuard configs are left untouched): Configuration defaults live in /etc/wg-admin.env: WG_ADMIN_HOST=127.0.0.1, WG_ADMIN_PORT=8080, WG_ADMIN_CONFIG_DIR=/etc/wireguard, WG_ADMIN_STATE_DIR=/var/lib/wg-admin.

Keep the service on localhost. Put a reverse proxy with TLS in front if anyone else needs access. wg-admin is developed and maintained by Sergiu Voicu, co-founder of Logi Maxx Systems. Repository: github.com/logimaxx/wg-admin. License: MIT.