vx3r / wg-gen-web

Simple Web based configuration generator for WireGuard
https://wg-gen-web-demo.127-0-0-1.fr
Do What The F*ck You Want To Public License
1.54k stars 187 forks source link

Manage Peers using wg-api #70

Open friesoft opened 3 years ago

friesoft commented 3 years ago

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.

vx3r commented 3 years ago

i am thinking about rewriting whole project to use wg-api but a couple of things are blocking:

friesoft commented 3 years ago

Personally I have wg-gen-web running in docker on my Synology nas, wireguard on my rpi4 and wg-api in docker on rpi4.

h44z commented 3 years ago

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.