Date: Tue, 23 Jan 2007 10:31:56 -0500 From: "Andy Greenwood" <greenwood.andy@gmail.com> To: "FreeBSD Questions" <freebsd-questions@freebsd.org> Subject: Re: freebsd realtime network usage limiter? Message-ID: <3ee9ca710701230731l492b2aa8l4448c3e12a6defc7@mail.gmail.com> In-Reply-To: <45B6254B.3090609@gmail.com> References: <45B6254B.3090609@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 1/23/07, deeptech71@gmail.com <deeptech71@gmail.com> wrote: > That is, I have a router connecting to the internet through PPP. There are 4 > computers (and a DSL modem) connected to the router. The router does not limit > or share internet speed evenly, so if I download via TCP at full speed, others > complain about slow loading web pages. My comp has a FreeBSD OS. How can I > limit my upload and download speed to, say, 0.333 of the speed permitted by my > provider? Also, if I had a FreeBSD router, how could I share speed evenly? > You can pretty easily set up a FBSD router to shpe bandwidth like this. I have done exactly that using the PF firewall with ALTQ. Unfortunately, ALTQ is not availible as a loadable module, so if you want to use it, you'll have to recompile the kernel with support enabled. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-pf.html http://www.openbsd.org/faq/pf/ that should get you started > BTW: Is it true that are some types of traffic that need higher priority, such > as games using UDP, so that data does not lag? Absolutely it is true. I don't run any gaming through my firewall, but one great example is TCP ACK packets. If you are on an asymmetrical connection (up/down bandwith aren't equal) you should prioritize outgoing TCP ACK packets to the highest level, since this will improve download performance. You might want to look at ports/security/pfw if you're not familiar with pf syntax, and it can make building a ruleset a lot easier, at least for the first time. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- -- I'm nerdy in the extreme and whiter than sour cream
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ee9ca710701230731l492b2aa8l4448c3e12a6defc7>