1
High availability / Re: CARP and Multiple Internal Interfaces
« on: March 20, 2024, 05:19:21 am »Hello all,
I am about to embark on clustering two OPNSense nodes and I have a couple questions:
1) I am going to have 3 internal interfaces and a Wireguard interface. Do I need to add a CARP firewall rule to each interface?
2) For the heartbeat network should the firewall rule be wide open or limited to the heartbeat network.
Thanks,
Steve
1) I believe the CARP firewall rule is automatically added and doesn't require manual rule creation. If you did want to make one though you could make a rule like the one below for every interface? Not sure about Wireguard but mine has been working without a custom rule.
Protocol Source Port Destination Port Gateway Schedule Description
IPv4 CARP carp_vlan10 * carp_vlan10 * * *
2) Most tutorials I've seen online for CARP create a wide open rule but I don't like that approach because what if somebody plugs in the wrong cable after poweroff/disconnect and they put your WAN link into the pfsync port? What I do is make a rule that allows SOURCE PFSYNC network to DESTINATION PFSYNC network on both sides and it has worked for me. Maybe somebody else has a suggestion as to a better rule?
Protocol Source Port Destination Port Gateway Schedule
IPv4* PFSYNC net * PFSYNC net * * *
Disclaimer: I am not an expert and just writing my experience. Perhaps someone more knowledgeable can chime in?