You are not logged in.

#1 2023-08-22 06:34:29

User361
Member
Registered: 2023-04-26
Posts: 2

[Solved] Backup default route via wireguard VPN

Hello,

I use a wireguard VPN as the default route configured via systemd-networkd like this config: https://wiki.archlinux.org/title/WireGu … d-networkd
Rarely my wireguard server has issues and I need to connect manually to another wireguard server to have internet access.
Is there a way to configure multiple wireguard server and always use one, which is up and running?
I don't mean a cronjob, which just checks the connection, but a real configuration.

Thank you

Last edited by User361 (2023-08-28 09:23:52)

Offline

#2 2023-08-23 12:38:53

-thc
Member
Registered: 2017-03-15
Posts: 510

Re: [Solved] Backup default route via wireguard VPN

You can activate several different wireguard connections simultaneously (I use up to 6 at the same time) but their "AllowedIPs" must not overlap. Your use case (same "AllowedIPs" statement) needs some active components (keeping one connection active, checking for an "offline/disconnected" condition and switching over) and AFAIK cannot be realized via simple configuration.

Offline

#3 2023-08-28 09:23:20

User361
Member
Registered: 2023-04-26
Posts: 2

Re: [Solved] Backup default route via wireguard VPN

@-thc
Thank you very much!

Offline

Board footer

Powered by FluxBB