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

    Re - Compatibility between VRRP and CARP

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    22 Posts 2 Posters 2.6k 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.
    • V
      viragomann @empbilly
      last edited by

      @empbilly said in Re - Compatibility between VRRP and CARP:

      On the dhcp server of the wan interface, do I also need to configure GW, DNS and Failover peer IP?

      Normally you don't need to run DHCP server on WAN at all, and it's disabled by default. So if you don't really need it, keep it disabled.

      But if you need it for whatever reason, you have to configure these settings accordingly.

      empbillyE 1 Reply Last reply Reply Quote 0
      • empbillyE
        empbilly @viragomann
        last edited by

        @viragomann

        Ok. On the wan we always leave disabled.

        My doubt is about the failover IP exchange when, for example, the master goes offline.

        For the wan in specific, does pfsense know the failover IP even without configuring it?

        https://eliasmoraispereira.wordpress.com/

        V 1 Reply Last reply Reply Quote 0
        • V
          viragomann @empbilly
          last edited by

          @empbilly
          This setting is only needed for DHCP. It isn't even necessary for the failover of the master role.

          You have a CARP VIP on on each (virtual) interface. This is always occupied by the master, regardless which node has the master role.
          The failover is controlled by the CARP protocol only.

          So this CARP VIPs are meant to be used as your gateway IPs for your internal devices and on WAN for routing traffic to your pfSense.

          The DHCP settings have nothing to do with this.

          empbillyE 1 Reply Last reply Reply Quote 0
          • empbillyE
            empbilly @viragomann
            last edited by empbilly

            @viragomann

            I left one interface free on each appliance for hasync.

            on pfmaster I set the IP 10.11.1.1 on igb5
            on pfbackup I set the IP 10.11.1.2 on igb5

            After the settings I enabled ha sync and the error below occurs:

            A communications error occurred while attempting to call XMLRPC method host_firmware_version
            

            a475c6dc-c9c6-4026-8f2c-38af211adb66-image.png

            Do I need to configure anything else on this interface? In pfbackup I don't need to enable hasync, do I?

            https://eliasmoraispereira.wordpress.com/

            V 1 Reply Last reply Reply Quote 0
            • V
              viragomann @empbilly
              last edited by

              @empbilly
              You need to allow the sync on on the backup as described int the docs: Setup Sync Interface.

              You have to add this rule to the primary, since it is synced to the secondary though, but for the first sync you have to allow it on the secondary as well.

              empbillyE 1 Reply Last reply Reply Quote 0
              • empbillyE
                empbilly @viragomann
                last edited by

                @viragomann

                Ok. My doubt is if I need to enable this option on pfbackup:

                System > high availability sync

                Syncronize states?

                https://eliasmoraispereira.wordpress.com/

                V 1 Reply Last reply Reply Quote 0
                • V
                  viragomann @empbilly
                  last edited by

                  @empbilly
                  Yes, only the states sync.
                  So the state are in sync, when failback to the primary and the connections persist.

                  But don't enable XMLRPC sync on the secondary.
                  Config changes must be made on the primary then.

                  empbillyE 1 Reply Last reply Reply Quote 0
                  • empbillyE
                    empbilly @viragomann
                    last edited by

                    @viragomann

                    pfsync Synchronize Peer IP needs a IP of pfmaster?

                    https://eliasmoraispereira.wordpress.com/

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      viragomann @empbilly
                      last edited by

                      @empbilly
                      No, not on the backup!

                      empbillyE 1 Reply Last reply Reply Quote 0
                      • empbillyE
                        empbilly @viragomann
                        last edited by

                        @viragomann

                        Thanks!!! Sorry for so many questions!!! :)

                        After setting the IP Peer failover in pfmaster's dhcp, in the dhcp lease option, the pool state needs to be normal, right?

                        Both pfmaster and pfbackup status is recover.

                        What causes this?

                        https://eliasmoraispereira.wordpress.com/

                        V 1 Reply Last reply Reply Quote 0
                        • V
                          viragomann @empbilly
                          last edited by

                          @empbilly
                          Maybe missing the Failover peer IP in the DHCP settings?
                          This must be stated on the primary only.

                          empbillyE 2 Replies Last reply Reply Quote 0
                          • empbillyE
                            empbilly @viragomann
                            last edited by

                            @viragomann

                            Actually, I did. Monday I will review the settings.

                            Thanks again!!!!

                            https://eliasmoraispereira.wordpress.com/

                            1 Reply Last reply Reply Quote 0
                            • empbillyE
                              empbilly @viragomann
                              last edited by

                              @viragomann

                              We have DNS Forwarder enabled. Do I need to select the VIPs in the DNS Forwarder?

                              https://eliasmoraispereira.wordpress.com/

                              V 1 Reply Last reply Reply Quote 0
                              • V
                                viragomann @empbilly
                                last edited by

                                @empbilly said in Re - Compatibility between VRRP and CARP:

                                We have DNS Forwarder enabled. Do I need to select the VIPs in the DNS Forwarder?

                                Not clear, what you mean. There are no IP to select in the Forwarder settings.

                                But if you are talking about the DHCP settings, then yes, it doesn't matter if you're running the Resolver or Forwarder or any other DNS server, you have to enter it's IP here. For these ones running on pfSense, this is the interface VIP.

                                empbillyE 1 Reply Last reply Reply Quote 0
                                • empbillyE
                                  empbilly @viragomann
                                  last edited by

                                  @viragomann

                                  I meant that.

                                  eeabdb9a-21ff-4b1d-905e-e9fe52915b0e-image.png

                                  But there is still something I am not getting, because I have enabled pfbackup on our network and the WAN is as MASTER in pfbackup and the dhcp leases are not as "normal".

                                  Any hints on what to look for?

                                  https://eliasmoraispereira.wordpress.com/

                                  V 1 Reply Last reply Reply Quote 0
                                  • V
                                    viragomann @empbilly
                                    last edited by

                                    @empbilly
                                    These are the IPs, the Resolver is listening on. Yes, you should select the respective VIPs there or even keep "all".

                                    because I have enabled pfbackup on our network and the WAN is as MASTER in pfbackup and the dhcp leases are not as "normal".

                                    Don't know, what you mean with the term "the dhcp leases are not as normal".
                                    However, I just rarely use the DHCP server on an HA system, so I'm sadly not experienced with it.
                                    If you have trouble with that you should better open a separate thread to get viable help, I think.

                                    empbillyE 1 Reply Last reply Reply Quote 0
                                    • empbillyE
                                      empbilly @viragomann
                                      last edited by

                                      @viragomann

                                      Status > DHCP Leases

                                      Pool Status
                                      7c9ddad5-07aa-4d91-ac82-fbaf5ca332b7-image.png

                                      It is now as "recover state". Regardless if I put pfbackup on the network, with Failover peer IP configured, it is still in "recover state".

                                      https://eliasmoraispereira.wordpress.com/

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