OPNsense Forum

English Forums => High availability => Topic started by: simgamer13 on January 22, 2022, 08:23:52 AM

Title: Load Balance Multiple OPNSense Instances
Post by: simgamer13 on January 22, 2022, 08:23:52 AM
I am looking for information if there is an appropriate way to load balance multiple OPNSense instances.  I am wanting to spread the throughput load going through the firewall across multiple devices/instances of OPNSense.  Is this possible?
Title: Re: Load Balance Multiple OPNSense Instances
Post by: bimbar on January 24, 2022, 11:23:49 AM
I don't think it is. At least not easily. The problem is twofold:

- How to get the traffic to balance in the first place.
- How to get the return traffic to return over the same firewall it went out on, or, how to get the connection tracking synchronized in time for the return packet to work, if it doesn't come back the same way.
Title: Re: Load Balance Multiple OPNSense Instances
Post by: lilsense on January 24, 2022, 03:45:59 PM
you would need two dedicated firewall load balancers which hypothetically a way that works, no it would not.

you would need to build a fw based on the size of load and have a backup if the primary fails.
Title: Re: Load Balance Multiple OPNSense Instances
Post by: cditty on May 26, 2022, 08:20:31 PM
Look into keepalived, it goes the VRRP route, but it might work for load balancing opnsense instances.