Per IP traffic shaping–share bandwith evenly between IP addresses??
-
Are you suggesting the user build 4 queues and then run codel on two them. The reason I ask is I am a new user trying to get handle on traffic shaping for my application. I am trying to understand the best way to use codel with pfSense. There does not appear to be much information on the way to use it.
In my case it is for a home router replacement, a RT-N16 running tomato with QoS. The recent TWC upgrade to 100/5 Mb/s service has caused me to outgrow the the N16 router.
Edit:
Note, I just created some queues via the wizzard and saved them as a test. When you try an apply codel, the previous queues are erased. -
Are you suggesting the user build 4 queues and then run codel on two them. The reason I ask is I am a new user trying to get handle on traffic shaping for my application. I am trying to understand the best way to use codel with pfSense. There does not appear to be much information on the way to use it.
In my case it is for a home router replacement, a RT-N16 running tomato with QoS. The recent TWC upgrade to 100/5 Mb/s service has caused me to outgrow the the N16 router.
Edit:
Note, I just created some queues via the wizzard and saved them as a test. When you try an apply codel, the previous queues are erased.I don't have anything to back this up, but codel is an algorithm to combat buffer bloat, so it drops packets. I didn't recommend codel on the DNS and ICMP queues because those types of traffic tend to not be high bandwidth in the first place, so a bit of bufferbloat may be less detrimental than dropped packets.
I personally set my packet buffers high for low/fixed bandwidth queues that do no react to dropped packets. Dropping packets is supposed to be a signal to back-off for protocols that implement congestion control.
My logic could be wrong or real world practice may have an interesting interaction, such that non-tail drop tightly smaller queues are always best, but I see no harm in my setup since it only affects me.
P.S. I forgot to include the ACK queue in my example. It should always exist.
Since you're a home user, this is what I use and it seems to work well for me. Mind you, I have a symmetrical pseudo-dedicated connection, so you may need to tweak your upload ACK queue allocation.
https://forum.pfsense.org/index.php?topic=86347.msg474756#msg474756
-
Has anybody been successful in equally dividing the bandwidth b/w a pc with torrent download and one with simple browsing?
or a mobile device against with simple data usage and a torrent downloading pc ?with me the torrent download PC always gets almost all of the bandwidth all the time !
Ashfaq
Hi!
I got this working with torrents. First, configure as foxale08, reply #9-#12. (The only difference is that I used a floating rule instead of a LAN rule, but it should work anyhow.)
Next step: Use the limiters Upload_LAN and Download_LAN again on the bittorrent portforward rule, but use Download_LAN on In and Upload_LAN on Out, because this is a WAN rule.
I tested this and if I limit Download to 10Mb/s and start a torrent, the torrent gets no more than 10Mb/s and then if I try to download from another IP adress, I get 5Mb/s from that client and 5Mb/s to the torrent client even if the bittorrent client has many more connections.
-
I have implemented the solution provided by foxale08 and it works very well.
But if someone used VPN to connect to the network and tried to copy something from the NAS located on the network to their own drive on their homework network - would they be treated just like any other user and they get a fair share?
-
I applied foxale08 method for the limiter and it kills internet connection (but I can ping websites), if I disable the limiters internet works fine. I'm also using squid proxy in transparent mode, I haven't tried to uninstall squid but could it be the issue?
-
Been struggling getting this to work all day but got it working now :)
Just in case anyone has problems, what fixed it for me is to set the bandwidth a few megabits below what is actually available. We get around 17 mbit over ADSL but the limiter wouldn't work until I set it at 15 (or lower).
I've also had the weird side effect that port reflection seems to have stopped working when accessing from our LAN, NAT rules which forward to our DMZ. Not a big deal at the moment but does anyone know why? The port reflection still seems to work for rules that point to our LAN.
Paul
-
Hi there guys.. i did foxale08's post and it worked very well. our gaming ping is very low for online games such as lol, hon and dota2, however, whenever the lan rule is enabled, all clients seem to have a very hard time browsing the internet, any idea how to solve this issue?
our broadband is 10mbps (yes its quite low) for download and around 600 kbps for upload so i set the limiter at 6mbps download and 512 kbps upload
-
Thank you foxale08 for your documentation on this solution. I have run this for over week a week now on our private network. My colleagues are coming up and saying … "did something happen to the internet? It is running faster and more reliable." I removed all the traffic shaping and your limiter setup is perfect for us.
I'd like to do the same for our public network. However, I have one last question. Are there resources that I need to make sure we have enough before doing that like handles, file limits etc?
My box is a Pentium R 3.4 Ghz with 2 CPU x 2 Cores and 4G of memory and 64G hard drive.
2 WANs (50mbps/5mbps; 24mbps/5mbps)
1 for private interface and 1 for public.
Private only has 15 users. Public can have 0-peak 120 general users (mail & browsing)Thanks!
Rob -
I applied foxale08 method for the limiter and it kills internet connection (but I can ping websites), if I disable the limiters internet works fine. I'm also using squid proxy in transparent mode, I haven't tried to uninstall squid but could it be the issue?
I have the same issue.
Disable the transparent proxy and the limiter will works
-
I tested foxale08's method on 2.2.2
I found that sometimes it not really share bandwidth evenly.
Anyone same issue ?
-
I am using 2.2.2-RELEASE (i386). We have about 6 people for a total of around 20 devices on a 25/3 Mbit residential connection, and when everyone fires up netflix/youtube/huluu/vudu/etc I can clearly see watching the traffic graph on the lan side that this is working!
I just wanted to post to say THANK YOU foxale08! This is working like a dream.
Guides like these are great! took our pfsense to a whole new level, we have been using pfsense for like 5 years now, and it has been great, but this makes it even better!
Now the next thing I need to figure out how to do is set a limit on the number of connections per IP, I would prefer that no single IP use more than 20-30 connections, because too many connections also causes issues for other users on the network that are not abusing it.
If anyone has any tips regarding limiting connections please let me know and thanks again foxale08!
-
If anyone has any tips regarding limiting connections please let me know and thanks again foxale08!
Maximum state entries per host on the main LAN pass rule (the same one that sets the limiters) is probably what you want.
Get ready for frowning faces. You'll probably break all sorts of things if you set this low enough that people actually hit it.
ETA: This should probably be another thread.
![Screen Shot 2015-05-28 at 6.55.47 PM.png](/public/imported_attachments/1/Screen Shot 2015-05-28 at 6.55.47 PM.png)
![Screen Shot 2015-05-28 at 6.55.47 PM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-05-28 at 6.55.47 PM.png_thumb) -
Since the default LAN rule is used to apply this speed limit, what happens if I want full speed to a transfer on my NAS between two computers on my LAN? Is the speed limit also imposed on that transfer? In that scenario, Id want full gigabit speed of the switch, not the imposed 20000 kbits.
That's exactly what I'm experiancing. With limiters set and I ping my NAS while doing a speed test the latency is 200+.
-
Communications between two computers on the same network don't hit the firewall (or the limiter) at all. Look elsewhere for your throughput issues.
If you are talking about traffic between two interfaces on pfSense, just add a pass rule on the source interface with a destination of the other interface's INTF net, above the rule that sets the limiter, but with no limiter. ezpz.
-
Thanks it worked.
Now how do I dedicate a 2mb portion of 10mb for IAX2 Voip on Wan?
-
HFSC Shaping.
-
Thanks maybe you could shed some light on this?
We currently have an interim wifi link of 10mb but at the end of the month we should have 100mb fibre.
My setup is 1 wan 7 vlans
LAN - 10.0.1.0/24 (not used)
Vlan5 - 10.0.0.0/24 (Devices i.e printers AP switches etc)
Vlan4 - 172.0.0.0/24 (Ipphones)
Vlan10 - 10.0.10.0/24 (1st Floor of our company)
Vlan20 - 10.0.20.0/24 (2nd Floor of our company)
Vlan30 - 10.0.30.0/24 (Wifi Clients)
Vlan40 - 10.0.40.0/24 (1st Floor of Another Company)Currently limiting per ip on vlan10,20,30 to 2mb up & down.
Vlan40 is not currently being used.So when the 100mb fibre is installed my idea is to limit vlan40 to 10mb for all user within that lan for http etc, and the remaining 90mb bandwidth is for our company.
From that 90mb I need to allocated 2mb for Voip IAX2 trunk (UDP port 4569) for communication for my internal pbx to service provider.help would be greatly appreciated
-
Should probably start another thread.
-
I have attempted to document the process for a simple single lan single wan setup in screenshots. Click apply settings when presented with the option to do so. See if this does what you want.
at the post image i would like to ask advice about shaping
1. Bandwidth - what will i put here the ISP gave me or the actual download speed I get when I downloading a file?
- ISP Package says up to 5.5mbps
- Im getting 650kbps DL/300kbps UL during off-peak and 500kbps during peak hours (@no limit downloading)
2. Between (None, Destination, Source) what will be the good to choose if u distribute bandwidth evenly.
-
Put the bandwidth values you actually can achieve. That being said, complain to your ISP, that is a far cry from 5 Mb. You are not getting what you are paying for.
Re; 2. follow all the screenshots, each limiter entry has their own settings for that.