How to setup "equal bandwidth to all users"
-
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 -
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 placeSource - http://www.gridstorm.net/pfsense-traffic-limiting-fair-share/
-
This example uses pfSense 2.1
i use Pfsense 2.3.1 and this solution does not working perfectly -
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.
-
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 -
UP UP :D
-
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
-
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?
-
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.
-
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
-
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.
-
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.
-
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.
-
I tried to shape traffic but unsuccessful in pf 2.3.2
help please -
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.
-
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.
-
That's odd, now i wonder why i felt like limiter is not working anymore and removed it. Let me try again then
-
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?