Development discussion of WireGuard
 help / color / mirror / Atom feed
* Dynamic routes
@ 2021-11-22 17:20 Robert Dahlem
  2021-11-23 22:40 ` Jonathon Fernyhough
  2021-11-24 11:18 ` Chriztoffer Hansen
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Dahlem @ 2021-11-22 17:20 UTC (permalink / raw)
  To: wireguard

Hello,

I'm searching for a way to dynamically add or delete routes when a
tunnel comes up or goes down. I do not mean "interface wg0 comes up",
but explicitly "tunnel comes up" in the sense that both peers see each
other, key exchange has been successful and packets would be transported
through the tunnel.

The idea behind this is to have redundant tunnels. Let's say a Wireguard
client has a preferred server and a secondary server. Packets should be
routed through the preferred router while that tunnel is established and
through the secondary server when the preferred server is not available
for some reason.

I could always install Quagga or Bird and use OSPF. But that might be a
bit of an overkill for a simple active/passive failover.

Is there any way to react on tunnel state events in Wireguard?

Regards,
Robert

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

end of thread, other threads:[~2021-11-24 15:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-22 17:20 Dynamic routes Robert Dahlem
2021-11-23 22:40 ` Jonathon Fernyhough
2021-11-23 23:03   ` Robert Dahlem
2021-11-24 11:18 ` Chriztoffer Hansen
2021-11-24 12:04   ` Mike O'Connor
2021-11-24 15:07     ` Robert Dahlem

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