Failover and load balancing
In the past, we used to need a dedicated network appliance to deal with multiple internet connections and guarantee good availability of internet access. One of the best features of a modern firewall is working with multiple WAN connections. OPNsense has incredible features that we'll explore in this chapter so that it can be configured with various internet connections.
Failover
The first scenario we'll explore is the failover configuration; with two or more WAN connections, it is possible to configure OPNsense to change the active internet connection to a backup one automatically. An example of an OPNsense configured with two internet connections is shown in the following topology:
As we can see in the preceding diagram, two WAN connections, A and B, are both connected to the internet and configured on OPNsense. WAN-A is configured in OPNsense as the primary connection...