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

    How to setup "equal bandwidth to all users"

    Scheduled Pinned Locked Moved Traffic Shaping
    18 Posts 8 Posters 15.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.
    • S
      sangour111
      last edited by

      How to setup a equal bandwidth to all users for pfSense.  What I mean by “equal bandwidth to all users” is as follows.

      If there is only one user downloading, give them the full download speed available
      If another user starts to download, then dynamically throttle the existing user and share the bandwidth approximately 50/50
      As other users join in, throttle all connections to provide equal bandwidth to all users

      1 Reply Last reply Reply Quote 0
      • H
        hell bomb
        last edited by

        Googled almost your exact question…

        How to setup a “fair use” bandwidth limiter for pfSense.  What I mean by “fair use” is as follows.

        If there is only one user downloading, give them the full download speed available
            If another user starts to download, then dynamically throttle the existing user and share the bandwidth approximately 50/50
            As other users join in, throttle all connections to provide equal bandwidth to all users.

        Overview

        This example uses pfSense 2.1

        Create a Download Limiter (a Fake Pipe) (name it something like DownloadLimit)
                Set the total Download Bandwidth such as 10 Mbps, enable it and save
                Create a Child Queue under the Download Limiter and name it something like Queue_OUT
                    set the slots to “Destination addresses”, enable it and save
            Creat a Upload Limiter (a Fake Pipe) (name it something like UploadLimit)
                Set the total Upload Bandwidth such as 1 Mbps, enable it and save
                Create a Child Queue under the Upload Limiter and name it something like Queue_IN
                    set the slots to “Source address”, enable it and save
            Create a new Firewall Rule under LAN
                Action: Pass
                Protocol: TCP/UDP (or any)
                Source: Lan subnet
                Advanced Features -> In/Out: Queue_IN / Queue_OUT
                Save and activate this rule
            Reload the state table by Diagnostics -> States -> Reset States
            Refresh your browser becuase resetting the states kills all existing connections
            Monitor the Limiters or the Traffic Graph to see the new limits in place

        Source - http://www.gridstorm.net/pfsense-traffic-limiting-fair-share/

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

          This example uses pfSense 2.1
          i use Pfsense 2.3.1 and this solution does not working perfectly

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

            How many users do you have to worry about? I really only have experience with HFSC, which can do what you're talking about, but I'm not sure what limitations it may have scaling to lots of "users" since each user needs a separate queue.

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

              Sorry for my bad english :-[
              i have many users (100 to 300 users) and i have 30 mb/s bandwith
              no problem if you have  another solution with your experience  "HFSC "
              you can help with a tuto

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

                UP UP  :D

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

                  I'm searching for the same thing for over a week and i can't find a working solution. Of course i have tried this guide with no luck. Is there a working solution? I have pfSense 2.3.2 64bit

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

                    I have tried installing opnsense and the "equal bandwidth to all users" works immediately by just following the guide found on their documentation. I'm trying so many days in order to make traffic shapping or equal bandwidth to all users work, but no luck. I have followed a lot of guides but none of them worked.

                    Does anyone know a solution for that really simple thing?

                    1 Reply Last reply Reply Quote 0
                    • V
                      vesikk
                      last edited by

                      https://forum.pfsense.org/index.php?topic=63531.0

                      Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

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

                        It's the real thing. I tried to shape traffic but all my efforts were unsuccessful. But your answer save my time. Thank you!  ;D

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

                          @vesikk:

                          https://forum.pfsense.org/index.php?topic=63531.0

                          Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

                          I have followed that guide and it simply does not want to share the bandwidth evenly… I have tried with the stable 2.3.2 and with a 2.3.3. Right now i am using the snapshot 2.3.3.a.20160817.1231 . My main goal is to achieve fair bandwidth share between my devices. My connection is 14543kbps down/1023 kbps up. With the current situation, if one device starts downloading a big file and at the same time another device tries to download something else or visit a webpage or view a video on youtube, it has at most 1mbps… And the pings go to 600ms-700ms-800ms. I try so many days to find a solution without any result.

                          1 Reply Last reply Reply Quote 0
                          • N
                            Nullity
                            last edited by

                            @dimangelid:

                            @vesikk:

                            https://forum.pfsense.org/index.php?topic=63531.0

                            Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

                            I have followed that guide and it simply does not want to share the bandwidth evenly… I have tried with the stable 2.3.2 and with a 2.3.3. Right now i am using the snapshot 2.3.3.a.20160817.1231 . My main goal is to achieve fair bandwidth share between my devices. My connection is 14543kbps down/1023 kbps up. With the current situation, if one device starts downloading a big file and at the same time another device tries to download something else or visit a webpage or view a video on youtube, it has at most 1mbps… And the pings go to 600ms-700ms-800ms. I try so many days to find a solution without any result.

                            Give more details.

                            Please correct any obvious misinformation in my posts.
                            -Not a professional; an arrogant ignoramous.

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

                              high pings are an issue of bufferbloat. Enable CoDel. Even when my 100Mb connection had 1Gb/s getting thrown at it, my ping stayed around 30ms. Lots of packet-loss, but my ping was fine. Actually, if you get rid of bufferbloat, that tends to evenly distribute bandwidth. It doesn't guarantee even distribution, but it is biased towards it.

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

                                I tried to shape traffic but  unsuccessful in pf 2.3.2
                                help please

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

                                  @vesikk:

                                  https://forum.pfsense.org/index.php?topic=63531.0

                                  Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

                                  That config was working, after one of the pfsense updates there was an alert saying layer 7 limiter won't work anymore. And it didn't work. Now there is no guide to do it in new version.

                                  1 Reply Last reply Reply Quote 0
                                  • N
                                    Nullity
                                    last edited by

                                    @AbdulCebbar:

                                    @vesikk:

                                    https://forum.pfsense.org/index.php?topic=63531.0

                                    Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

                                    That config was working, after one of the pfsense updates there was an alert saying layer 7 limiter won't work anymore. And it didn't work. Now there is no guide to do it in new version.

                                    Limiters have nothing to do with layer 7. foxale08's tutorial should still work.

                                    Please correct any obvious misinformation in my posts.
                                    -Not a professional; an arrogant ignoramous.

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

                                      That's odd, now i wonder why i felt like limiter is not working anymore and removed it. Let me try again then

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

                                        @Nullity:

                                        @AbdulCebbar:

                                        @vesikk:

                                        https://forum.pfsense.org/index.php?topic=63531.0

                                        Follow foxale08's guide on that page for what you want. That's what I used to achieve what you are trying to achieve.

                                        That config was working, after one of the pfsense updates there was an alert saying layer 7 limiter won't work anymore. And it didn't work. Now there is no guide to do it in new version.

                                        Limiters have nothing to do with layer 7. foxale08's tutorial should still wor,,k.

                                        Ok it's working but now my nat reflection is broken somehow, is this related?

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