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

    [Help] Stack on captive portal for 30-45minutes on boot up

    Scheduled Pinned Locked Moved Captive Portal
    8 Posts 3 Posters 1.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.
    • T
      tjsas1
      last edited by

      Hi Team,

      I am stack on boot up for 30-45minutes on captive portal when its enabled. When its not it will not take that long.

      Please help.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @tjsas1
        last edited by

        @tjsas1

        Sorry, we can't come over to check it for you.
        You should login into the console, reboot, and tell us when/where, at what point, the boot process starts to wait "30-45" minutes.

        Btw : why are you rebooting ? A "pfSense" should run for days, weeks or even months without any reboot needed.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        T 1 Reply Last reply Reply Quote 1
        • T
          tjsas1 @Gertjan
          last edited by

          @gertjan

          Thanks for the reply. It rebooted due to power loss. Though it happen even if the server is restart manually.
          It stack at "configuring captive portal" line on bootup for 30-45minutes before it continues booting up.

          Tried the following experiments

          1. disabled the captive portal. it worked. but I need the captive portal
          2. change settings on the captive portal including timeout but it still stack
          3. I have around recording between 10-100 on the captive portal status. I tried clearing them it work. But I need them to stay there because they are valid.

          I am not sure what it does checking on bootup. But 10 records on captive portal status are still low for that to take that long.

          @gertjan said in [Help] Stack on captive portal for 30-45minutes on boot up:

          @tjsas1

          Sorry, we can't come over to check it for you.
          You should login into the console, reboot, and tell us when/where, at what point, the boot process starts to wait "30-45" minutes.

          Btw : why are you rebooting ? A "pfSense" should run for days, weeks or even months without any reboot needed.

          GertjanG F 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @tjsas1
            last edited by

            @tjsas1

            I can't tell what it is doing during that time.

            Have you set this :

            d399c28c-b494-4e52-9125-bbf35027b691-image.png

            ?

            My pfSense can not reboot, as it is 'mission critical', so it is protected by an UPS.
            Removing the power of a system without proper shut-down, can create a whole lot of issues with the file system.

            I have rarely more then 10 clients connected to my captive portal, but I'l try a reboot, see what happens.

            Are you using the pfSense user manager, or Freeradius, to ID clients ?

            When you reboot with the portal not active, there is no boot delay ?
            When you activate the portal, there is also a delay ?

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            T 1 Reply Last reply Reply Quote 1
            • T
              tjsas1 @Gertjan
              last edited by

              @gertjan yes we are using the Preserve users database.

              Are you using the pfSense user manager, or Freeradius, to ID clients ? Freeradius hosted externally.

              When you reboot with the portal not active, there is no boot delay ? yes.

              When you activate the portal, there is also a delay ? There is none.

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan @tjsas1
                last edited by

                @tjsas1

                That's identical to my settings :
                "Preserve" + LAN based FreeRadius server.

                I rebooted a couple of time, me looking at the console.
                The portal init phase is not slower or faster as all the other 'boot' message lines, like Init resolver, init firewall, init etc.
                I use a +/- 11 years old Dell server "PC" (poweredge T310 - it just wont die on me).

                You said :

                [Freeradius hosted externally.

                so what happens when you switch to 'local user manager' ? This test will exclude an issue with the Freeradius access.

                What happens when you disable "Preserve connections'" ?
                Preserve connections is actually a rather useless setting, as connections will get interrupted as the connection goes down. Like you phone call : you will have to dail again.

                Are you using a traffic shaper ?
                What happens when you swap the captive portal interface with the LAN interface, or WAN interface ?
                What is the type and brand of the NIC's ?

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • F
                  free4 Rebel Alliance @tjsas1
                  last edited by

                  @tjsas1 i'm assuming that's because your pfSense cannot reach your freeradius server at boot time ?

                  That's strange. As a safety measure, you should disconnect the "preserve connected users" option

                  I'll have a deeper look when i'll have time

                  1 Reply Last reply Reply Quote 0
                  • T
                    tjsas1
                    last edited by

                    @Gertjan @free4

                    The radius server is served via the internet. Its not LAN based. Does that matter? Re authentication does not take that long at normal operation.

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