wg-gen-web icon indicating copy to clipboard operation
wg-gen-web copied to clipboard

Manage Peers using wg-api

Open friesoft opened this issue 4 years ago • 3 comments

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.

friesoft avatar Feb 06 '21 23:02 friesoft

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) ?

vx3r avatar Feb 07 '21 09:02 vx3r

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

friesoft avatar Feb 07 '21 12:02 friesoft

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.

h44z avatar Feb 26 '21 23:02 h44z