wg-gen-web
wg-gen-web copied to clipboard
Manage Peers using wg-api
I would like to manage remote wireguard installs without having to copy the wireguard config files there and reloading wg.
wg-api seems to be a perfect fit for this usecase as it allows to create and remove peers using the api. Persistence is ensured using SaveConfig in the wg-quick config.
i am thinking about rewriting whole project to use wg-api but a couple of things are blocking:
- all components in docker containers ?
- how to manage networking rules (nat) ?
Personally I have wg-gen-web running in docker on my Synology nas, wireguard on my rpi4 and wg-api in docker on rpi4.
I would suggest using https://github.com/WireGuard/wgctrl-go directly (that is also what wg-api uses internally), so you do not need an separate container for wg-api. I use it myself in https://github.com/h44z/wg-portal and it works flawlessly.