4 ms·
Unrelated question. But may be someone knows enough. Is it possible to create high-available wireguard server? Like I put load balancer on UDP :51820 before ser
by vbezhenar 4y ago
Unrelated question. But may be someone knows enough. Is it possible to create high-available wireguard server? Like I put load balancer on UDP :51820 before servers and then those servers somehow share a session pool, so when one goes down, another can continue serving clients without interruptions.
Naive approach does not work: wireguard establishes connection and if backend server changes, this connection stuck for a few minutes until wireguard decided to establish new connection. Persistent Keep Alive does not help for some reason. Eventually it'll re-establish new session and will work from now on, but this delay is unacceptable.
- goodburb 4y agoNot a LB, look into Engarde.
- paol 4y agoTake a look a these (not tested these configurations personally): - High Availability WireGuard on AWS [https://www.procustodibus.com/blog/2021/02/ha-wireguard-on-aws/ https://www.procustodibus.com/blog/2021/02/ha-wireguard-on-a...] - High Availability WireGuard on Azure [https://www.procustodibus.com/blog/2021/06/ha-wireguard-on-azure/ https://www.procustodibus.com/blog/2021/06/ha-wireguard-on-a...] - High Availability WireGuard Site to Site [https://www.procustodibus.com/blog/2021/10/ha-wireguard-site-to-site/ https://www.procustodibus.com/blog/2021/10/ha-wireguard-site...]
- vbezhenar 4y agoThanks, it seems that they just OK with user being offline for minute or two, they use ordinary configuration. I'm using the same approach, but I'd really love instant switchover.