From owner-freebsd-questions@FreeBSD.ORG Tue Jan 23 15:32:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FD4916A40F for ; Tue, 23 Jan 2007 15:32:00 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id E3E2F13C4C4 for ; Tue, 23 Jan 2007 15:31:59 +0000 (UTC) (envelope-from greenwood.andy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so1096883wri for ; Tue, 23 Jan 2007 07:31:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tbfYLlFQQfaYuxVdsSxqMgbeiqWDbla4OAu1hU51nrZ5pZiuV1h2/cVX13WLKbVlEgEttpdAffaNPUjEsi9wj2VHSFaRVVPVHnGf0E+ujkHFrlul4/yFiU84z6eQVeLjzoSzHAbcZv8j1UdNiv4TFtA9KXikUxV9pfF2Lzr31oQ= Received: by 10.78.204.20 with SMTP id b20mr410880hug.1169566316040; Tue, 23 Jan 2007 07:31:56 -0800 (PST) Received: by 10.78.135.13 with HTTP; Tue, 23 Jan 2007 07:31:55 -0800 (PST) Message-ID: <3ee9ca710701230731l492b2aa8l4448c3e12a6defc7@mail.gmail.com> Date: Tue, 23 Jan 2007 10:31:56 -0500 From: "Andy Greenwood" To: "FreeBSD Questions" In-Reply-To: <45B6254B.3090609@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45B6254B.3090609@gmail.com> Subject: Re: freebsd realtime network usage limiter? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jan 2007 15:32:00 -0000 On 1/23/07, 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