Development discussion of WireGuard
 help / color / mirror / Atom feed
* event for peer connection
@ 2021-02-24  0:11 frank.mosch
  2021-03-07 20:57 ` Linus Lotz
  0 siblings, 1 reply; 2+ messages in thread
From: frank.mosch @ 2021-02-24  0:11 UTC (permalink / raw)
  To: Wireguard

Hello,

first thank you all for your great work on Wireguard! 

We would like to switch to wireguard at work but for our setup we need some automatic configuration based on the clients and their IP numbers. Is there a way to get notified when peers connect or send handshake packets? We'd like to avoid polling as the configuration needs to be done rather quickly on a connect for a pleasant user experience.
A file in /sys or /proc that can be waited on would be best but listening for netlink events would be useful, too. 

Servus, Frank

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

* Re: event for peer connection
  2021-02-24  0:11 event for peer connection frank.mosch
@ 2021-03-07 20:57 ` Linus Lotz
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Lotz @ 2021-03-07 20:57 UTC (permalink / raw)
  To: wireguard

Hi Frank,
I have created a patch for the linux kernel[1], that notifies you about
changes of the endpoint address over netlink. If you could test it and
give some feedback if it works for you that would be great.


[1] https://lore.kernel.org/patchwork/patch/1366219/

Best Regards,
Linus


Am 24.02.21 um 01:11 schrieb frank.mosch@tutanota.com:
> Hello,
> 
> first thank you all for your great work on Wireguard! 
> 
> We would like to switch to wireguard at work but for our setup we need some automatic configuration based on the clients and their IP numbers. Is there a way to get notified when peers connect or send handshake packets? We'd like to avoid polling as the configuration needs to be done rather quickly on a connect for a pleasant user experience.
> A file in /sys or /proc that can be waited on would be best but listening for netlink events would be useful, too. 
> 
> Servus, Frank
> 

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

end of thread, other threads:[~2021-03-07 20:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24  0:11 event for peer connection frank.mosch
2021-03-07 20:57 ` Linus Lotz

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