HA with Public IPs from different subnets
-
Hello,
I have the following issues:
-
I would like to have a HA setup for pfSense, but cannot get a pool of /29 Public IPs from my provider. therefore I was asking myself I I could setup HA 2 Public IPs in different subnets and still do the failover part on the LAN side like documented. As far as I understand this, this should still failover to the second Firewall incase of an outage and then route the traffic out to the second public IP. which would mean that all states are lost but that should only be a few seconds of outages for the clients as the states are quickly rebuilding on the second Public IP. Is this correct or am I missing something.
-
I would also like to have Multi WAN running on both of the instances so in case that one Internet Line (not pfSensebox) fails all traffic gets routed out the secondary wan link. would this setup interfere with the HA in any part?
-
I would like to Run LAG interfaces to the LAN part of both pfSenseBoxes on which there are Vlans configured (using the pfSense as Router on a stick). Does this also work with the HA setup?
Any help is appreciated.
Thanks
-
-
@UserCo said in HA with Public IPs from different subnets:
I would like to have a HA setup for pfSense, but cannot get a pool of /29 Public IPs from my provider. therefore I was asking myself I I could setup HA 2 Public IPs in different subnets and still do the failover part on the LAN side like documented.
I guess, you mean with different upstream lines? This should be possible anyhow. But why will you do this?
I would rather configure all interfaces in HA mode, however use private address spaces for the WAN.
This has some drawbacks though, but it's more reliable than different WAN upstream connections.I would also like to have Multi WAN running on both of the instances so in case that one Internet Line (not pfSensebox) fails all traffic gets routed out the secondary wan link. would this setup interfere with the HA in any part?
No.
So you have a router in front of pfSense on one WAN, but the other one gets a public IP?I would like to Run LAG interfaces to the LAN part of both pfSenseBoxes on which there are Vlans configured (using the pfSense as Router on a stick). Does this also work with the HA setup?
Yes.
You have configure the LAGG on the network ports, then assign an interface to it with an IP. Same on the secondary node with a different IP. Then assign the CARP VIP on the primary to this interface. -
@UserCo Who is your ISP? Specifically for Comcast here, their router provides NAT even in bridged mode. So we have set up:
router1 - 10.1.10.11
router2 - 10.1.10.12
shared IP - single public IPThis way both routers can access Internet and the one public IP is shared.
re: multiple WAN, it can be done with HA but needs multiple sets of IPs:
https://docs.netgate.com/pfsense/en/latest/recipes/high-availability-multi-wan.html -
I guess, you mean with different upstream lines? This should be possible anyhow. But why will you do this?
I would rather configure all interfaces in HA mode, however use private address spaces for the WAN.
This has some drawbacks though, but it's more reliable than different WAN upstream connections.Thanks for the answers. How would I use the private Address space on the WAN side. I have only read that that could be possible but newer seen it. What's wrong with the different WAN upstream connections other than in case of a hardware failure on the master pfsSense the state tables on the secondary would need to be rebuild?
-
@UserCo said in HA with Public IPs from different subnets:
What's wrong with the different WAN upstream connections other than in case of a hardware failure on the master pfsSense the state tables on the secondary would need to be rebuild?
As I got it, you intend to connect the primary node to the one WAN line and the secondary to the other. So if the one on the primary goes down the LAN CARP won't automatically failover to the secondary because the primary is still healthy. You would have to pull the LAN plug in this case.
-
@viragomann yes exactly. Another question as I now just received the info that I might be able to get 3 public IP addresses in the same public subnet from my provider. How would I want to have them get to the WAN interface on my pfSense. right now I use PPPoE but I am wondering how I would get one IP each to each of the WANs and the 3rd one as the carp. would I need a WAN switch and then use static IP addressing for each WAN on the pfSense and then select the public Gateways of my provider as Gateway for my WANs? And what would I need to tell my provider on how they need to setup their device?
Thanks
-
@UserCo
How will you get the public IPs?CARP is basically only supported with static interface IPs. I don't think, the provider will give you multiple PPPoE IPs.
And yes, if both come over a single cable you need a switch in front of the pfSense boxes.There are some threads in the forum discussing "PPPoE as CARP VIP" though. You can use the search, maybe there are possibilities. I don't know.