Navigation

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

    Re - Compatibility between VRRP and CARP

    HA/CARP/VIPs
    2
    22
    554
    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.
    • empbilly
      empbilly @viragomann last edited by empbilly

      @viragomann

      Nice!!! Thanks again!!!

      Regarding the DNS and Gateway of each vlan, I should put the VIP address, correct?

      I had questioned before, but in our institute we have a samba4 AD. The administrative vlans and the computer labs use the AD IP as DNS. Is this a problem for HA/VIP CARP?

      print_ad_dns.png

      Another question is about the NAT Outbound, which pfsense automatically sets to automatic. Would I have to change it to MANUAL or HYBRID and then set the translation IP to the WAN's VIP CARP address?

      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:

        Regarding the DNS and Gateway of each vlan, I should put the VIP address, correct?

        At least for the gateway you have to state the CARP VIP of each subnet.
        For DNS you can have either the CARP VIP or both interface IPs or any other DNS server you prefer.

        he administrative vlans and the computer labs use the AD IP as DNS. Is this a problem for HA/VIP CARP?

        No, you can use any DNS.

        Another question is about the NAT Outbound, which pfsense automatically sets to automatic. Would I have to change it to manual and then set the translation IP to the WAN's VIP CARP address?

        Yes, you need to configure it manually.
        When you switch over to manual mode, pfSense takes over the automatic rules, so you can edit them, as far as I remember.
        So edit all rules for your internal subnets (you can also set only one rule to apply to all your subnets by enlarging the source network).
        Remember that the first matching rule is applied and further are ignored.

        But don't touch the rules for 127.0.0.1/8. They have to stay on WAN address.

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

          Thanks @viragomann !!!!!

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

          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:

            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.

            empbilly 1 Reply Last reply Reply Quote 0
            • empbilly
              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.

                empbilly 1 Reply Last reply Reply Quote 0
                • empbilly
                  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.

                    empbilly 1 Reply Last reply Reply Quote 0
                    • empbilly
                      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.

                        empbilly 1 Reply Last reply Reply Quote 0
                        • empbilly
                          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!

                            empbilly 1 Reply Last reply Reply Quote 0
                            • empbilly
                              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.

                                empbilly 2 Replies Last reply Reply Quote 0
                                • empbilly
                                  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
                                  • empbilly
                                    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.

                                      empbilly 1 Reply Last reply Reply Quote 0
                                      • empbilly
                                        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.

                                          empbilly 1 Reply Last reply Reply Quote 0
                                          • empbilly
                                            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