How to separate the bandwidth of a single internet for browsing and for gaming



  • I need help, hope someone out there knows how to separate the bandwidth of a single internet.
    I got a 5 mbps dsl internet, and i want it to split it to 4mbps for browsing internet and the remaining for online gaming.  The problem that i am  encountering right now is since the bandwidth is not separated, if one client watch youtube, the online gamers starts to lag. you can actually see the ping going up.  Im using pfsense 2.0.3.  Pls  help


  • Netgate Administrator

    You need to use traffic shaping to limit other users or provide a guaranteed bandwidth. If the machine that is used for gaming is not used for other things then you can just setup a reserved bandwidth for that IP. See:
    https://doc.pfsense.org/index.php/Traffic_Shaping_Guide

    Steve



  • Hi Steve, thank you very much for your prompt reply. But I'm noob on to this thing.  I dont know where to start.  Yeah I always here traffic shaping, but how to do it I really dont know.  Sorry if my question is so stupid, I just new to this one.

    So far  i only know how to o create a limiter for download and upload. and after that how do I make rules that all computer say 10 clients can browse/share a maximum bandwidth of 3mbs and the 2mpbs can be shared for gaming.

    best regards,
    Johnny


  • Netgate Administrator

    Pretty much like you said. Create limiters for download and upload that everyone else one your network will use so a 3Mb limiter for download and a similar appropriate limiter for upload. Now alter your default firewall on LAN to use the in/out option to point at your new limiter tunnels. Now set a new rule, above the default rule you just altered, that allow traffic from your gaming machine that does not use the limiters.
    Your gaming machine gets unlimited bandwidth, everyone else is fed through the 3Mb pipe.

    Good description here: http://www.squidworks.net/2012/08/pfsense-2-0-limiting-users-upload-and-download-speeds-by-limiting-bandwidth/

    In your case though leave the 'mask' set to none to provide a total limit for all users rather than limits per user as described there.

    Steve



  • Thank you very much Sir Steve, I'm gonna try that one and see if it that will work or not. And thanks for the link, it gives me additional understanding of what is that MASK is all about.

    Sir Steve, can I ask another question, its out of the topic but just in case you know it, maybe you can help me out.  How do I know what port tcp or udp are being used by online games.  Say for example Garena league of legends, crossfire online and etc. I googled it and people are saying to used netstat.  I did try netstart -a but I can't figure out which tcp or udp are being used, there just too many tcp udp being mention there.


  • Netgate Administrator

    If the machine running the game (or server) is behind pfSense you can look in the webgui at Diagnostics: States: and then filter by the IP of the gaming machine. That will show you the ports of any connections.

    Steve


Log in to reply