Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    CARP/Pfsync Across Multiple Sites

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    13 Posts 5 Posters 3.8k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeX
      last edited by

      Hmm.. Ok so as long as the routing nastiness of BGP is out of your hands….

      I would say.... try to use pfsync, without CARP... if that makes sense.

      Both sites would run as the production LAN space, with a separate routable management space (so you can access your VM consoles, SAN management interfaces, etc..).

      You wouldn't need CARP because you wouldn't be failing addresses over... the addresses already are active but not accessible via the WAN.

      You're probably saying... "But they are both on that VLAN, wouldn't that mean I need to do a manual failover/intervention in the event of a network outage."

      Yes. :)

      What you are talking about is DR, which is not always an automatic process. I can think of a number of reasons why you wouldn't want an automatic process for this, but the biggest is the accidental failover of your pfsense clusters to the secondary site, then a whole mess of data issues when clients start hitting the secondary nodes.

      Instead, get the configurations synced, and a solid process to 'flip the switch' at the secondary site to bring the routing online.

      Are you using some sort of dynamic routing protocol between the ISP router and your pfsense boxes, or just static routes?

      1 Reply Last reply Reply Quote 0
      • E
        ehuk
        last edited by

        Hi Mike,

        Manual intervention is inevitable, however I want it under our control as much of it as possible. For example, if we just use pfsync and not CARP, then in the event of a failover we may need our upstream to flush their ARP entries to make sure the WAN IPs move over to Site B. The IPs would need to be the same on both sides otherwise our IPSec tunnels won't come up and some clients will need to update their DNS entries.

        An unplanned failover would be the worst case scenario, is it possible to make CARP less 'sensitive'? I suppose we could also work with our upstream and try and setup some sort of IPSLA to monitor the primary site's next hop, and only bring up the Site B WAN port if there is no response from Site A, just doesn't seem very elegant.

        As this is only two sites, we will only use static routing, I don't think it is worth going down the OSPF route until we add a 3rd site.

        Thanks.

        1 Reply Last reply Reply Quote 0
        • M
          MikeX
          last edited by

          I'll admit I don't know too much about the back end of CARP… but even in a CARP failover, the MAC address changes, yes? So you would be in the same boat I feel.

          Maybe I'm wrong... I'm trying to look up some documentation on it so it might be a while before I get back to you. :)

          1 Reply Last reply Reply Quote 0
          • E
            ehuk
            last edited by

            @MikeX:

            I'll admit I don't know too much about the back end of CARP… but even in a CARP failover, the MAC address changes, yes? So you would be in the same boat I feel.

            Maybe I'm wrong... I'm trying to look up some documentation on it so it might be a while before I get back to you. :)

            Well the MAC address corresponds to the VIP so it wouldn't change (I believe?) I will look into the CARP docs.

            1 Reply Last reply Reply Quote 0
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              The CARP MAC does not change during failover. It is based on the VHID and is shared between the nodes.

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • M
                MikeX
                last edited by

                Well.. that answers that question.

                My only other concern would be… does your ISP use an actual layer 2 VLAN which is shared... or is it a form of layer 2 over layer 3... or is it some sort of route reflector?

                1 Reply Last reply Reply Quote 0
                • E
                  ehuk
                  last edited by

                  @MikeX:

                  Well.. that answers that question.

                  My only other concern would be… does your ISP use an actual layer 2 VLAN which is shared... or is it a form of layer 2 over layer 3... or is it some sort of route reflector?

                  I believe for these two sites it will be a stretched L2 VLAN (dark fibre between the sites). All the L3 stuff (including the SVIs for the VLAN) and BGP speakers are located in different sites with better connectivity.

                  The 1 Gbps private circuit will be a QinQ to start with, before switching to an MPLS circuit.

                  I will let you know what we decide to do and how it works out.

                  1 Reply Last reply Reply Quote 0
                  • H
                    huwjrr
                    last edited by

                    Curious to know what you did here in the end and how it went. Cheers.

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      binary_bandit @huwjrr
                      last edited by binary_bandit

                      @ehuk

                      Would you mind updating us? How did this work out.

                      We're considering the same thing.

                      best,

                      James

                      H 1 Reply Last reply Reply Quote 0
                      • H
                        huwjrr @binary_bandit
                        last edited by

                        @binary_bandit I went with a solution roughly as explained by Mike here.. the advice came from elsewhere, but the comments were basically the same.

                        Have two sites both routable always, each with its own carp cluster (no pfsync across sites, not necessary for me), but only one is routed to at a time. I allow my upstream provider to route for me, but could do this myself later by enabling/disabling an IP at either site and have them route to that instead. Each site is completely independent and although they advertise 3 public ranges they both have their own native/local range of public ips too.

                        Really the concensus from everyone I've spoken to is to do this with switches and bgp not pfsense, which is a huge bottleneck - but it does work.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.