freifunkMUC/wg-access-server

how create preset user?

pprometey opened this issue · 8 comments

I want wg-access-server to be used in conjunction with Wirehole, user friendly. How to create a preset user?

What do you consider a preset user?

so that I can connect via VPN to the Wireguard server, without creating a user via the UI.
config file

i like going https://github.com/linuxserver/docker-wireguard#parameters when i can set the variable -e PEERS=1

first i used this project but it is very buggy and unpredictable https://github.com/linuxserver/docker-wireguard
I deploy it on oracle cloud arm64 base

Basic Auth users with access to the web UI for generating their own device configs can be hardcoded in the config file under the auth.basic:, see https://www.freie-netze.org/wg-access-server/4-auth/
Alternatively you can hook up your own OIDC backend.

But this is different from how the linuxserver/wireguard image works, which generates actual WireGuard config files right away and outputs them in the log.
wg-access-server has a web UI, and every user has their own account for it and can add clients/devices to generate WireGuard configs.

I just didn't want to release the Wireguard control panel into the public space, but wanted to hide it behind a VPN

You can also generate all configs as/from the admin user. If it's just for you, that's not a problem.
But making the WireGuard UI only accessible through WireGuard will always lead to a bootstrapping problem.

Thanks DasSkelett, you helped me a lot. A little later I will show the results of your help.