Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
High availability
»
[Solved] Failover via Routing distance
« previous
next »
Print
Pages: [
1
]
Author
Topic: [Solved] Failover via Routing distance (Read 2200 times)
adn77
Newbie
Posts: 23
Karma: 2
[Solved] Failover via Routing distance
«
on:
June 29, 2022, 03:15:17 pm »
I created two routes to the same subnet using two different remote (VPN) gateways.
In Linux a distance parameter can be added for preferring one route over the other.
Is this possible as well or do I have to setup a Gateway group and try the counter-intuitive way via Firewall rules?
Or do I even have to setup a proper routing protocol?
«
Last Edit: July 14, 2022, 04:27:02 pm by adn77
»
Logged
adn77
Newbie
Posts: 23
Karma: 2
Re: Failover via Routing distance
«
Reply #1 on:
July 14, 2022, 04:26:45 pm »
I am going to answer myself...
Looks like in FreeBSD it is not possible to add a second route to the same subnet:
Code:
[Select]
fib 0: route already in table
Hence one has to use a proper routing protocol or use policy based routing.
I opted for the latter by performing these steps:
create gateway group containing my two remote VPN gateways
add a firewall rule on the interface receiving the incoming traffic (from my local LAN) destined for the remote network and choosing the gateway group as gateway
remove the previously set static routes from config and from route status
The connectivity to the remote network was interrupted for a few minutes (I guess due to some firewall states), but eventually it worked.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
High availability
»
[Solved] Failover via Routing distance