VPN Failover with Vyos or Backup VPN

Hi Guys,

Not sure if this question has already been asked before but I didnt find what I was looking for. I am planning to set up Vyos Router as my VPN device and it will have 2 Internet links

Now other peer as well will hve 2 ISPs, so my question is can I create backup VPN or if one of the link fails can it be possible to fail to other VPN tunnel? I have setup IPSec VPN with one IP but not sure how do configure backup vpn so that if one link fails automatically traffic will be faild over to other link. Here is my setup

Site A

Local Prefix =
Vyos =


Site B
Remote Prefix =

Tunnel is configured between <==> but how that can be automatic failver between &

So really this is not possible with Vyos?? I am surprised!!

You could pin down another tunnel between and and use some sort of routing protocol to choose the most appropriate path.

You could also try using static route preference, say put the backup route with preference 100 where if the primary route is not available the traffic will be switched over to the backup route .

On site A: Add routes to pin each tunnel to an interface -> use GW1 ->use GW2
Create 2 VTI IPsec tunnels.
1: local= remote= ip=
2: local= remote= ip=
Enable routing protocol like OSPF , do similar on site B and you have redundant tunnel.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.