Recommended Setup for Opnsense Live Migration

Nov 13, 2021
3
1
8
31
Hi all,

I have 2 servers. Each have (1) 4 port NIC.

Currently running Opnsense on one of the servers with a fairly basic setup. Port 4 of this server connects to switch for VE management of other VMs on this server, port 3 not currently used except for local direct connection to Opnsense, port 2 is WAN and port 1 is LAN connected to uplink of switch.

I would like to configure these 2 servers in a cluster such that if I take one down for maintenance, the Opnsense VM will migrate to the other so my network will stay up (maybe a slight interrupt during migration). This is just my personal home network, so I plan to run a Raspberry PI as a Q-device to maintain expected votes for the cluster.

Is this setup possible with just (1) NIC in each server or would I need another in each?

How would the network or ports be setup between each server such that when the migration happens, the Opnsense VM maintains the LAN/WAN connections as it is expecting them? I only have one WAN connection from my modem directly connected to server 1, how would server 2 utitilze this in a migration event? Maybe WAN should be at the switch instead of directly to server1?

Sorry for the questions, just cant seem to find a good setup guide for a similar situation. Any info would be helpful.
 
HA in PVE is really great. But for a software router which offers CARP I would really recommend to utilize that higher level redundancy.

PVE/HA would restart the replacement-OPNsense after approx. two minutes. This means two (or three, including startup) minutes without network in the whole LAN. CARP works in near-zero time if the current master went south.

Just my two €¢...