Development discussion of WireGuard
 help / color / mirror / Atom feed
* [WireGuard] Pull-based peer configuration
@ 2016-11-22 13:08 Baptiste Jonglez
  2016-11-22 16:31 ` Jason A. Donenfeld
  0 siblings, 1 reply; 7+ messages in thread
From: Baptiste Jonglez @ 2016-11-22 13:08 UTC (permalink / raw)
  To: wireguard

[-- Attachment #1: Type: text/plain, Size: 942 bytes --]

Hi,

Right now, the only method for configuring peers is "push-based",
i.e. using `wg` to push the public key and AllowedIPs for each peer to the
running wireguard instance.

I'm toying with the idea of a pull-based model, for instance storing peer
configuration in a Radius or SQL database.  But it seems like an
incredibly bad idea to integrate a Radius or SQL library inside the
kernel.

What about having a userspace daemon that wireguard can query from
kernelspace when a new peer connects?  Wireguard would basically ask "Is
this public key allowed to connect, and what are its AllowedIPs?".  The
daemon would then use whatever method it wants (flat file, SQL/Radius
database, LDAP…) to determine whether the peer is allowed and its
configuration.

I guess it looks a bit like the IKE daemon in IPsec (though not exactly,
since wireguard handles rekeying itself), which I'm not sure is a good
sign :)

Baptiste

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-01-30  1:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-22 13:08 [WireGuard] Pull-based peer configuration Baptiste Jonglez
2016-11-22 16:31 ` Jason A. Donenfeld
2017-02-08 23:23   ` mint (ubuntu) kernel Signing john huttley
2017-02-11  9:14     ` Jason A. Donenfeld
2017-02-11 12:18   ` [WireGuard] Pull-based peer configuration jens
2017-02-11 14:49     ` Jason A. Donenfeld
2019-12-26  1:36     ` F. Hölzlwimmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).