pfSense Support Subscription

Author Topic: How to automatically balance out the traffic over my home network?  (Read 2135 times)

0 Members and 1 Guest are viewing this topic.

Offline relik1989

  • Newbie
  • *
  • Posts: 17
    • View Profile
I believe this would be the right place to ask this, if not, then I do apologize.

I have 6 Computers, 3 Cellphones, and a PS3 all on my home network and they all share a 20Mb/s cable internet connection. Is there a way that pfsense can automatically throttle down certain devices that are using large amounts of bandwidth if another device tried to use the internet as well? For example I do a good amount of downloading, during the day its not an issue, but at night we like to watch Netflix, and I have to manually throttle my downloads through Transmission(BT Client). Is there a way that I could configure pfsense to give me all the bandwidth I want solong as no other devices are trying to use over a set amount themselves. Like if I'm downloading at the full 20Mb/s, but then my wife goes to watch netflix, pfsense could automatically throttle my bandwidth so she can watch netflix without constant buffering, then when she's done, my connection will automatically go back up? but like I said, only if those other devices are trying to use over a set amount or something similar, I donít want my connection so be throttled ever single time someone goes to check their Face book.

My current hardware config is;

Modem->pfsense box(1WAN 1LAN)->Dlink DIR655(AP)->

I have pfsense set to handle everything, the dlink is configured as an access point only, but every single device in the house connects through the dlink.

Offline podilarius

  • Hero Member
  • *****
  • Posts: 1764
    • View Profile
Re: How to automatically balance out the traffic over my home network?
« Reply #1 on: June 18, 2012, 09:37:07 am »
You can do this with little effort. Just run the wizard and put in a penalty IPs/Alias. All that need to run at a lower priority. Once you have completed the wizard, you can go back to your queues and add in more queues if you want more categories of penalty IPs (like 3 groups of priorities). Then you assign what IPs you want in each group through the floating firewall rules. Be sure to match the existing penalty rule for everything but the IP address if you have more than 1 group. Those that have the highest or same priority will share the connection equally between them.

Offline wired-circuit

  • Jr. Member
  • **
  • Posts: 28
    • View Profile
Re: How to automatically balance out the traffic over my home network?
« Reply #2 on: July 05, 2012, 01:28:45 pm »
relik1989, how did you get on?  I dont think Im understanding the complete picture with it all, are you?

Offline johnpoz

  • Hero Member
  • *****
  • Posts: 2889
    • View Profile
Re: How to automatically balance out the traffic over my home network?
« Reply #3 on: July 07, 2012, 07:58:54 am »
One problem I see is all your devices are wireless, even if pfsense puts traffic in lower priority its already went over your shared wireless network.

Not sure how well that would work.

Wouldn't it be easier to just set your p2p (why anyone would do that over wireless in the first place?) to throttle down or just pause at night.  Pretty much any p2p client I have ever looked at has a scheduler built into it, so say after 5pm pause, then resume after bedtime.

edit:  So here is part of the problem of running p2p over wireless.  Wireless is SHARED, only really 1 device talking at a time.  So with p2p there is traffic even when your not downloading or uploading anything.  Once you have joined a swarm or two, your going to be seeing traffic to your ip and port be it your actively running your p2p client even.  Now have you forwarded your ports on your firewall for p2p? So that unsolicited traffic gets sent to your p2p box right.  Well that is all traffic eating away at your shared wireless bandwidth.  Now it might not be a huge amount, but it is still traffic taking up "shared" bandwidth

so I turned on logging for just a couple of seconds on my p2p forward on 43212

pass Jul 7 08:07:53 WAN 77.31.49.71:30700 192.168.1.8:42312 UDP
pass Jul 7 08:07:43 WAN 87.16.223.199:63782 192.168.1.8:42312 UDP
pass Jul 7 08:07:41 WAN 109.254.1.15:64355 192.168.1.8:42312 UDP
pass Jul 7 08:07:41 WAN 201.76.108.87:33911 192.168.1.8:42312 UDP
pass Jul 7 08:07:40 WAN 176.32.4.140:36355 192.168.1.8:42312 UDP
pass Jul 7 08:07:37 WAN 193.151.106.142:1027 192.168.1.8:42312 UDP
pass Jul 7 08:07:33 WAN 78.34.146.138:55016 192.168.1.8:42312 UDP
pass Jul 7 08:07:33 WAN 95.96.26.78:27581 192.168.1.8:42312 UDP
pass Jul 7 08:07:29 WAN 85.243.118.210:57270 192.168.1.8:42312 UDP
pass Jul 7 08:07:29 WAN 77.85.164.13:23640 192.168.1.8:42312 UDP
pass Jul 7 08:07:21 WAN 128.71.69.106:63151 192.168.1.8:42312 TCP:S
pass Jul 7 08:07:19 WAN 41.99.20.19:13383 192.168.1.8:42312 UDP   

Why not run your p2p box on a wire, so that traffic does not eat up your shared bandwidth..  And then sure put it in a penalty box so it does not eat up your inet connection.  You have 10 that you mention devices all sharing "shared" bandwidth.  Are your devices all N, the Cells for example?  If not - they are sure not helping either - its shared bandwidth, putting slower speed devices ie B on G, B/G on N only slow it down.

You have some box moving packets at G speeds - since its shared, you can not at same time have data moving at full N speeds, N is going to see something slower than if it was only N devices.

So I wonder is it your isp connection that is saturated, or is more just wireless bandwidth issue?
« Last Edit: July 07, 2012, 08:13:32 am by johnpoz »
- An intelligent man is sometimes forced to be drunk to spend time with his fools.
- Have I helped you, want to say thanks?  Donate to pfsense the cost of a beer http://pfsense.org/donate.html