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

    Captive portal and CARP issue

    Scheduled Pinned Locked Moved Captive Portal
    11 Posts 3 Posters 5.2k 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.
    • H
      hoba
      last edited by

      Try to add the real interface IPs of the opposite box (slave IP at master and master IP at slave) as passthrough IP. I think the keepalive broadcasts are captured by the captive portal and this is causing both machines to become master.

      1 Reply Last reply Reply Quote 0
      • O
        orliec
        last edited by

        @hoba:

        Try to add the real interface IPs of the opposite box (slave IP at master and master IP at slave) as passthrough IP. I think the keepalive broadcasts are captured by the captive portal and this is causing both machines to become master.

        Where exactly should I go to set this up?  (Sorry, newbie here.)

        Thanks in advance,

        • Orlie
        1 Reply Last reply Reply Quote 0
        • H
          hoba
          last edited by

          services>captive portal, allowed IP adresses.

          1 Reply Last reply Reply Quote 0
          • O
            orliec
            last edited by

            (sigh)  Didn't work, but thank you for the suggestion – I was running out of ideas.  I guess there aren't many setups out there using both captive portal and CARP?

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

              When the browser tries to redirect you, do you see the carp ip or the real ip of one of the system in the statusbar of the browser? Also what status do you see for the carp IP at status>failover(carp) at both systems?

              1 Reply Last reply Reply Quote 0
              • O
                orliec
                last edited by

                @hoba:

                When the browser tries to redirect you, do you see the carp ip or the real ip of one of the system in the statusbar of the browser? Also what status do you see for the carp IP at status>failover(carp) at both systems?

                'Apologize for the delayed feedback.  Actually, whenever a portal login appears, I never see the CARP IP address – only the real LAN IP address of one of the servers.  As for the CARP status, all looks good -- only 1 of them is the master for both interfaces (LAN & WAN) at a time while the other is the backup for both interfaces.

                Do you know if anyone else is using Captive Portal using a CARP setup?

                1 Reply Last reply Reply Quote 0
                • S
                  sullrich
                  last edited by

                  CARP will not work with the CP on 1.0.  The code will grab the real interface IP address, not the CARP IP.

                  1 Reply Last reply Reply Quote 0
                  • O
                    orliec
                    last edited by

                    @sullrich:

                    CARP will not work with the CP on 1.0.  The code will grab the real interface IP address, not the CARP IP.

                    Thanks for the reply. We're running 1.0.1 (latest version as of today), but I didn't see any mention of CARP + CP being supported in the updates for version 1.0.1 as compared to version 1.0.  I suppose the alternative is to disable CARP on the 2 servers and just have the 2nd server as a warm spare.

                    Question: Is there an automated (or less manual) method of copying/syncing over all changes done from the 1st server and onto the warm spare without enabling CARP?

                    1 Reply Last reply Reply Quote 0
                    • S
                      sullrich
                      last edited by

                      You could try a really evil hack..  Download the configuration… Change the interface from optX to carpX for the captive portal interface, upload the new configuration.... It might just work...

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

                        If this works note that you will have to change it this way whenever you touch the captive portal settings and hit save.

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