Do you need multiple public IP's for basic failover functionality?
-
So I made it work, at least on my bench.
I used 10.0.0.1 for Primary WAN Interface, and 10.0.0.2 for Seconday WAN Interface with /30 subnet (This network goes no where)
I created a "Public" CARP WAN IP for the actual WAN, in this test its 10.1.25.250 (because its behind another firewall on the bench)
Setup my Sync interfaces, configured outbound nat to Hybrid and set it to use the CARP address as the NAT address.
Running ping tests to the internet from an interface behind these 2 virtual firewalls, I only see 1 packet drop when I emulate a firewall failure, by "turning off the power" to the Hyper-v VM
And powering it back up, it updates and takes over as Primary again without any issues. So It looks like this will do what I want without wasting public IP's. The only problem with this, is that the secondary firewall has no internet access of its own until it takes over as the Primary.
I guess I could create another virtual interface to act as a secondary WAN to allow it to talk to the internet outside of the "public" facing network.
-
@Magoogle said in Do you need multiple public IP's for basic failover functionality?:
create another virtual interface to act as a secondary WAN to allow it to talk to the internet outside of the "public" facing network
If you use a /29 instead of a /30, 10.0.0.3 goes on the router upstream from these two and hence is the gateway for 10.0.0.1 and 10.0.0.2. That gives those two Internet access over the NAT, or the shared/CARP IP.
-
@SteveITS The router upstream doesnt exist in the datacenter. Just a fiber handoff with 2 blocks of IP's
-
@Magoogle said in Do you need multiple public IP's for basic failover functionality?:
The only problem with this, is that the secondary firewall has no internet access of its own until it takes over as the Primary.
By creating a failover group with the WAN gateway and the LAN of the primary, the secondary can go out to the internet through the primary node if it's in backup state.
You would have to configure the HA settings on the primary that this gets not overwritten.
-
@viragomann Where on the primary HA would that configuration be changed? I dont see in the offered selections to exclude that type of change?
-
@Magoogle
You have to disable syncing of "Static Route configuration" in System > High Availability Sync.
This of course means then, that you have configure all static route and gateway groups on the secondary as well. -
@viragomann I created a gateway group and a secondary gateway on the secondary firewall. I tried with WAN and the LAN as the interface and the IP's of the primary as the gateway. while the gateway shows online, the secondary is unable to ping out to the world.
-
@Magoogle
On the secondary you need to add the primary's LAN address as a gateway in System > Routing > Gateways. I'll call it PrimLanThen go to the gateway groups tab and add you new failover group:
WAN gateway > Tier1
PrimLan > Tier2Got back to the gateway tab and state this group as default gateway.
Ensure that the monitoring is enabled on both gateways and that the WAN gateway state is offline, when the primary is the master.
-
@viragomann Thats how I set it up. But when using the console for pfsense, it cant ping out even though the Tier2 gateway shows as online.
-
@Magoogle
Check Status > Gateways.
Is the tier2 the default now? -