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

    pfSense & concurrent users

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 6 Posters 1.8k 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.
    • A
      AMSUIT @SteveITS
      last edited by

      @SteveITS
      @SteveITS said in pfSense & concurrent users:

      @AMSUIT Well your graph shows 6k states which is less than 800k.

      at that moment the website stopped!!

      @SteveITS said in pfSense & concurrent users:

      “Didn’t send any data” doesn’t sound like DNS.
      Okay, i will

      @SteveITS said in pfSense & concurrent users:

      Did you go through the troubleshooting link I posted?
      yes, i just finished. seems all set fine.
      we can smoothly browse the website with 60 students\users, more than that, it stopped (as shown in the preious second graph), sometime with 90 user, and sometimes with 70 user....!
      while, browsing a test-website locally, it works fine with 109 students!

      i will increase the memory size to 16GB in the coming days, and will test the website again.
      hope to solve this problem in out school online exams.

      1 Reply Last reply Reply Quote 0
      • A
        AMSUIT @esaenz
        last edited by

        @esaenz thank u for ur reply.
        as i relied to @SteveITS :
        we can smoothly browse the website with 60 students\users, more than that, it stopped (as shown in the preious second graph), sometime with 90 user, and sometimes with 70 user....!
        we had no prblem\error when browsing the website with one user up to 60+ , the browsing problem happens with 70-90 students and more...!

        S 1 Reply Last reply Reply Quote 0
        • S
          SteveITS Galactic Empire @AMSUIT
          last edited by

          @AMSUIT Are you using captive portal or any other packages? Open states are not normally a memory issue.

          per https://docs.netgate.com/pfsense/en/latest/hardware/size.html#large-state-tables:
          States - Connections - RAM Required
          100,000 - 50,000 - ~97 MB

          Honestly I've never seen one of our or our clients' pfSense routers use more than about 3 GB of RAM and that's while using RAM disks. Most are under 1 GB.

          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
          Upvote 👍 helpful posts!

          A 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @AMSUIT
            last edited by johnpoz

            @AMSUIT said in pfSense & concurrent users:

            i had done a test with the same Moodle platform locally in our LAN (with no pfSense in the middle) and it works fine with concurrent 109 students

            Not really a valid test to be honest.. Running something locally wouldn't have say the hosted site out on the public internet filtering that could be in place to prevent X number of sessions from the same IP.. Your students are not all using their own public IP are they? Are you natting to 1 public IP, or are you loading the nat across multiple public IPs?

            I didn't see anything in what you posted that would suggest you have reached some pfsense limit.. 6k states is not very much.. Now if you were say 60k something ok - maybe your running into state exhaustion.. there is a limit to how many states can be created from any one IP to another IP.. The number of ports that can be used.

            I would get with the company hosting and ask if they have any sort of limits to how many concurrent connections you can have from a single IP address.

            edit:
            And other browsing works when you run into the issue with the site right, the same student having issues with connecting to the testing site, can surf other stuff at the same time... Are other connections effected when this happens? Ie some other student surfing other stuff while some students are taking the test - they continue to function ok?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            S A 3 Replies Last reply Reply Quote 0
            • S
              SteveITS Galactic Empire @johnpoz
              last edited by

              @johnpoz said in pfSense & concurrent users:

              get with the company hosting and ask if they have any sort of limits to how many concurrent connections you can have from a single IP address

              Along these lines, is every web site a problem at that point? Or just this one you're complaining about?

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote 👍 helpful posts!

              1 Reply Last reply Reply Quote 0
              • A
                AMSUIT @SteveITS
                last edited by

                @SteveITS said in pfSense & concurrent users:

                @AMSUIT Are you using captive portal or any other packages? Open states are not normally a memory issue.

                no at all, i'm not using captive portal.

                @SteveITS said in pfSense & concurrent users:

                Open states are not normally a memory issue.
                😖

                1 Reply Last reply Reply Quote 0
                • A
                  AMSUIT @johnpoz
                  last edited by

                  @johnpoz said in pfSense & concurrent users:

                  Not really a valid test to be honest.. Running something locally wouldn't have say the hosted site out on the public internet filtering that could be in place to prevent X number of sessions from the same IP.. Your students are not all using their own public IP are they? Are you natting to 1 public IP, or are you loading the nat across multiple public IPs?

                  I didn't see anything in what you posted that would suggest you have reached some pfsense limit.. 6k states is not very much.. Now if you were say 60k something ok - maybe your running into state exhaustion.. there is a limit to how many states can be created from any one IP to another IP.. The number of ports that can be used.

                  I would get with the company hosting and ask if they have any sort of limits to how many concurrent connections you can have from a single IP address.

                  edit:
                  And other browsing works when you run into the issue with the site right, the same student having issues with connecting to the testing site, can surf other stuff at the same time... Are other connections effected when this happens? Ie some other student surfing other stuff while some students are taking the test - they continue to function ok?

                  😕 yeah, u r right. and that's so confusing !
                  when the error occur, we can browse any other website normally...! even, i can ping the website it self !! but no DNS\ no browsing till i reboot Firewall.
                  its really so confusing, thats why i came here to get ur advices, guys...

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • A
                    AMSUIT @johnpoz
                    last edited by

                    @johnpoz said in pfSense & concurrent users:

                    Are you natting to 1 public IP, or are you loading the nat across multiple public IPs?

                    yes, with one public IP for our school.
                    BUT, as i mention previously, i did a test with the local website using the Firewall as intermediate, and faced the same problem!

                    stephenw10S johnpozJ 2 Replies Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator @AMSUIT
                      last edited by johnpoz

                      @AMSUIT said in pfSense & concurrent users:

                      but no DNS\ no browsing till i reboot Firewall.

                      if there was no dns you wouldn't be able to go anywhere else, from any device that wasn't cached by the client or on pfsense.. You mean that site fqdn no longer resolves? Do other sites that are not in the cache resolve? Use the dns lookup tool under diagnostics.. If the answer to what your looking up is only couple ms then it was cached, if it more like 30ms or something that it was looked up, etc. Your saying no dns works at all?

                      Vs rebooting the firewall - just restart unbound, that will clear all dns caches, etc. Also when the problem happens vs being concerned with how many total states.. How many states exist to that site your trying to run the test on?

                      But in general 6k total states is nothing.. Here I just ran a scan across pfsense from my test box to another box on another network - did a full intense scan for all 65000 ports.. that could open.. My state table shot up through the roof

                      states.jpg

                      No issues I can still access that box I scanned web gui without any issues.. 6k states is nothing..

                      After the scan was over - states dropped back down to my normal sort of states.. A few hundred to like 2k..

                      statesgone.jpg

                      Clearly you have something going on - but I doubt its states or cpu or memory issues..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator @AMSUIT
                        last edited by

                        @AMSUIT said in pfSense & concurrent users:

                        i did a test with the local website using the Firewall as intermediate, and faced the same problem!

                        How did you arrange that test? Was it also NATing traffic to one IP?

                        1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @AMSUIT
                          last edited by johnpoz

                          @AMSUIT said in pfSense & concurrent users:

                          i did a test with the local website using the Firewall as intermediate, and faced the same problem!

                          Where did you state that? You stated this

                          i had done a test with the same Moodle platform locally in our LAN (with no pfSense in the middle) and it works fine with concurrent 109 students

                          Ok I see now where you redirected it through pfsense.. How exactly did you do that? Locally pfsense would be involved in talking to some website on your own local network and if just routed to a different segment it wouldn't nat. You setup nat reflection?

                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                          If you get confused: Listen to the Music Play
                          Please don't Chat/PM me for help, unless mod related
                          SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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