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

    Sync captive portal logged in state

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    3 Posts 2 Posters 621 Views 2 Watching
    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.
    • C Offline
      citronvolcano
      last edited by

      Hi

      i am wondering if there is a solution for the problem described below :
      https://redmine.pfsense.org/issues/4552

      i've 2 firewalls, version 2.4.3, high availability configured for each interface, and also DHCP server and captive portal configured

      the problem is that clients can get IP from the both DHCP servers, it's fine, but when trying to access internet, if the client get authenticated via the captive portal of the backup, he still cannot have access to internet even if the authentication is success, because he is listed only on the Backup whereas the active gateway is on the Master who still doesn(t know that the user is logged because the state of the logged users aren't synced between the backup to the master

      is there a way to sync captive portal logged users between the Master and the Backup ?

      thanks a lot

      DerelictD 1 Reply Last reply Reply Quote 0
      • DerelictD Offline
        Derelict LAYER 8 Netgate
        last edited by

        Sounds like you have not set up your DHCP correctly.

        In general, when you run HA, you configure the DHCP server to give the CARP VIP on that interface as the default gateway. Else it will give them the interface address which is almost certainly not what you want.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • DerelictD Offline
          Derelict LAYER 8 Netgate @citronvolcano
          last edited by

          @citronvolcano said in Sync captive portal logged in state:

          is there a way to sync captive portal logged users between the Master and the Backup?

          Not that I know of. Last time I ran an HA captive portal I am pretty sure I told it not to sync the CP settings and just disabled the captive portal on the secondary. In the event of a failover it was better to just allow the traffic than to break 3000 CP sessions all at once.

          Yes, there would be a "vulnerability" in that a savvy user could just manually set their gateway to the secondary's interface address and bypass the portal but that was deemed a lesser concern. The access was "free" anyway. The primary reason HA was implemented was keeping the front desk from getting slammed in the event of a failure, which equates to keeping the guests happy.

          Chattanooga, Tennessee, USA
          A comprehensive network diagram is worth 10,000 words and 15 conference calls.
          DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
          Do Not Chat For Help! NO_WAN_EGRESS(TM)

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