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

    Captive Portal (too damn slow)

    Scheduled Pinned Locked Moved Captive Portal
    14 Posts 9 Posters 12.1k 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.
    • M
      mlemmo
      last edited by

      I also have had complaints about this from users. (portal login page slow to load)

      any Ideas

      please let me know if monowall has the same issue.

      thanks

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        m0n0wall reportedly does not have the same slow page loads that some people run into. We haven't been able to duplicate it, even in some captive portal environments with hundreds of simultaneous users.

        If someone knows how to reliably replicate this, please let me know!

        1 Reply Last reply Reply Quote 0
        • J
          JAlexandre
          last edited by

          Hi All,

          Just a report back.

          My system is in production, so it means I can't do all the tests I would like to discover and help for a solution or debug the problem.

          What I can do is to add this information.

          I setup m0n0wall in the same way it was pfSense, same rules, captive portal with HTTPS. Both pfSense and m0n0wall had rules in the WLAN that didn't allow to reach in anyway both the DMZ and LAN. HTTPS Server Name was set to the name and domain of the firewall it self and certificate accordingly, m0n0wall was more responsive but it didn't do the job as expected. I also tried to use another name, that I configured in DNS Forwarder in hosts, but this didn't even work.

          One thing that I discovered in both pfSense and m0n0wall is that when you give to the HTTPS Server Name the name of your firewall itself, it resolves the IP by the one at the LAN interface.

          Another thing, I used the latest stable release of m0n0wall (1.231) and it seemed to me fastest performing in Internet access than pfSense, and in both I only have dnsmasq, lighttpd, dhcpd and bsnmpd services running.

          But then I tried a different approach and configured in Captive Portal, HTTPS Server Name, the IP of the WLAN interface, build a certificate accordingly and it seems to have solved the problem, it now is fast from all clients (PCs, MACs, iPhones).

          I didn't had the time to debug the problem so I'm not 100% sure this information is accurate, it worked for me, I hope it helps others, or helps to solve the problem, if it is one. Maybe is a configuration one? Not sure but it can be as m0n0wall didn't suit for me.

          Sorry for my english.

          If you do need some more information…

          Regards,

          Joao

          PS: I'm now running pfSense 1.2 RC3

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

            Yes, I have seen that as well.  Best practices is to enter the Ip address of the interface the captive portal is listening on.  I will commit a change to clarify this.

            1 Reply Last reply Reply Quote 0
            • A
              aneip
              last edited by

              you means set the IP inside

              HTTPS server name?

              1 Reply Last reply Reply Quote 0
              • D
                dtran
                last edited by

                @JAlexandre,
                You're using radius authentication right?.  Are you using the accounting?
                Try turning off the 'send radius accounting packets"

                1 Reply Last reply Reply Quote 0
                • C
                  cybrsrfr
                  last edited by

                  The original post mentions a 150 users. The web server in pfSense 1.2 lighttpd was optimized for a firewall and expectation of only 1 or 2 connections to the firewall.  Captive portal with 150 is needs more resources in order to work well with that number of users especially after the machine is rebooted and everyone tries to get back on all at once.

                  Two things I have found that help it run much better.
                  http://forum.pfsense.org/index.php/topic,8861.msg50280.html#msg50280
                  http://forum.pfsense.org/index.php/topic,8878.msg51652.html#msg51652

                  There have been changes to pfSense 1.3 that will make it account for the additional web server load when using captive portal.

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

                    I am having much problems with cp. I am unable to get it to load at all now.  I got it working ok a week or so ago but now nothing, the browser just times out.  Also when I click the link to view current page a new browser window pops up going to port 8000 but the page is blank.  I have uploaded over and over again but no change.

                    Anyone have any ideas?

                    1 Reply Last reply Reply Quote 0
                    • B
                      buraglio
                      last edited by

                      What version of pfsense are you using? Are you using RADIUS?  The more details the better.

                      nb

                      https://www.forwardingplane.net/

                      1 Reply Last reply Reply Quote 0
                      • C
                        cybrsrfr
                        last edited by

                        Have you rebooted pfSense since you started having problems with captive portal? Or from the ''Restart webconfigurator" from the console.

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

                          @buraglio:

                          What version of pfsense are you using? Are you using RADIUS?  The more details the better.

                          nb

                          Sorry bout that.

                          Just figured it out though.  The page would not come up from the link because my mac was listed in the mac pass through.  The cp would not come up when trying to access the internet because I had not added any users yet to the user manager.

                          Thanks for the response!  I appreciate it.

                          1 Reply Last reply Reply Quote 0
                          • B
                            buraglio
                            last edited by

                            Cool.  Thanks for closing the loop.

                            nb

                            https://www.forwardingplane.net/

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