All-in-one: wg-easy + prometheus-wireguard-exporter
Important
The project is no longer maintained and has been archived. Starting with wg-easy version 15, native Prometheus metrics functionality is included, rendering this extension obsolete. For more details, refer to the official wg-easy Prometheus metrics documentation.
$ docker run -d \ --name=wg-easy-extended \ -e WG_HOST=🚨YOUR_SERVER_IP \ -e PASSWORD=🚨YOUR_ADMIN_PASSWORD \ -v ~/.wg-easy:/etc/wireguard \ -p 51820:51820/udp \ -p 51821:51821/tcp \ -p 9586:9586/tcp \ --cap-add=NET_ADMIN \ --cap-add=SYS_MODULE \ --sysctl="net.ipv4.conf.all.src_valid_mark=1" \ --sysctl="net.ipv4.ip_forward=1" \ --restart unless-stopped \ ghcr.io/tolkonepiu/wg-easy-extended
💡 Replace
YOUR_SERVER_IPwith your WAN IP, or a Dynamic DNS hostname.💡 Replace
YOUR_ADMIN_PASSWORDwith a password to log in on the Web UI.
-
Web UI -
http://0.0.0.0:51821 -
Exporter metrics -
http://0.0.0.0:9586/metrics
💡 Your configuration files will be saved in
~/.wg-easy