News for hackers. Stuff that matters.
Re:WireGuard 1.0 for Linux 5.6 by eadmund on Monday March 30, 2020 @09:33AM (#22727860)
I think the idea is that you're supposed to build a system to manage WireGuard using that sort of information. I.e. WireGuard provides the basic primitives and second- or third-party tooling uses them.

I like that idea, because it means that the actual WireGuard core is small and it's usable right now. It is annoying that someone hasn't yet developed neat integrations for WireGuard and stuff I might want to use, but — I'm someone! I (or you, or whoever) can build something, and as surely as day follows the night someone else will build some neat things in the future.

It's early days yet!

Re:WireGuard 1.0 for Linux 5.6 by L_Rahman on Monday March 30, 2020 @03:49PM (#22731597)
I'm looking forward to the days when we have good user management for Wireguard. It's so hard to scale it across just my family right now.
Re:WireGuard 1.0 for Linux 5.6 by blacksmith_tb on Monday March 30, 2020 @05:26PM (#22732433)
Algo (mentioned above) will generate a bunch of profiles for you (including QR codes to configure mobile devices without needing to type awkward strings), which works pretty well for me - at least with a family you won't need to add or revoke identities very often I'd hope...
Re:WireGuard 1.0 for Linux 5.6 by ficklepickle on Monday March 30, 2020 @06:59PM (#22733053)
My family shuns a member every other week. If you can't access the family VPN anymore, that is your notice.
Re:WireGuard 1.0 for Linux 5.6 by L_Rahman on Wednesday April 01, 2020 @10:21PM (#22755664)
I'm using Algo right now and it's perfect if I plan to maintain the same server consistently. The problem is that we're constantly traveling around and latency suffers when trying to connect to a box in DO's NYC3 from Vietnam.

It's a huge hassle to take that box down, spin up a new instance in Singapore, distribute profiles and authenticate. This is neither Algo nor Wireguard's fault. I just wish we had some more tooling to make it easier to move between instances.

Re:WireGuard 1.0 for Linux 5.6 by d00bianista on Tuesday March 31, 2020 @12:56PM (#22739580)
Like a good Unix tool, that's outside of WG's scope. User management is done with the likes of LDAP and such.
Re:WireGuard 1.0 for Linux 5.6 by L_Rahman on Wednesday April 01, 2020 @10:17PM (#22755653)
I completely agree that it should never be part of Wireguard itself. Mostly looking forward to the project and tooling ecosystem that develops around it.
Re:WireGuard 1.0 for Linux 5.6 by exabrial on Monday March 30, 2020 @10:21AM (#22728221)
Yep, that's what I'm asking for... right now wireguard can only look at configuration text files AFAIK. If it had a way to invoke a command/script to lookup a key/ip, any number of external management systems could be created!
Re:WireGuard 1.0 for Linux 5.6 by MartijnBraam on Monday March 30, 2020 @10:30AM (#22728297)
actually wireguard doesn't look at text files at all, it only has a netlink interface so you can configure it using the `ip` command. The current tools read the text files and set up the network interface.
Re:WireGuard 1.0 for Linux 5.6 by exabrial on Monday March 30, 2020 @10:44AM (#22728387)
Interesting... I'll have to take a look at what the utilities are actually done then and how they're loading the keys into the interface
Re:WireGuard 1.0 for Linux 5.6 by djsumdog on Monday March 30, 2020 @12:45PM (#22729598)
If you look at their tutorial video, you can see what's going on. The tutorial has a lot of commands like

    ip link add wg0 type wrieguard
    ip addr add 10.1.20.1/24 dev wg0
    wg set wg0 listen-port 5100 private-key /etc/path/to/key
    ip link set wg0 up
    wg set wg0 peer........
If you look at the wg-quick script, it basically reads an /etc/wireguard/<adapter>.conf and runs the same commands based on your settings.

It's great when you're just trying to test things out. You can do a lot of stuff by hand, make sure it's working, try the conf file, enable the systemd or runit service, reboot and make sure it comes up.

Re:WireGuard 1.0 for Linux 5.6 by inetknght on Monday March 30, 2020 @01:35PM (#22730141)
Can you link to the video you're mentioning?
Re:WireGuard 1.0 for Linux 5.6 by djsumdog on Monday March 30, 2020 @02:03PM (#22730468)
Re:WireGuard 1.0 for Linux 5.6 by darkwater on Monday March 30, 2020 @10:30AM (#22728296)
You can already easily do the other way round: populate the config files with keys retrieved in an external system
Re:WireGuard 1.0 for Linux 5.6 by igetspam on Monday March 30, 2020 @10:39AM (#22728351)
This is what I do. I have a small dynamo table and a Python script I run from cron. I grab all updates since the last run and apply all changes to the running service. I have the config option set to write out the config on service stop, so I don't lose anything on a restart and don't have to replay everything. I have lots of room for improvement but it's a quick hack that works for my needs. (Not sharing yet because it doesn't fully CRUD right now.)
Re:WireGuard 1.0 for Linux 5.6 by briffle on Monday March 30, 2020 @02:19PM (#22730644)
that sounds like an ideal candidate for orchestration tools like ansible, puppet, etc. Have them build/template out the config files for you