From owner-freebsd-net Sun Aug 22 5:47:29 1999 Delivered-To: freebsd-net@freebsd.org Received: from cdc.net (server1.cdc.net [207.244.0.12]) by hub.freebsd.org (Postfix) with SMTP id 26B9414CD5 for ; Sun, 22 Aug 1999 05:47:23 -0700 (PDT) (envelope-from mwade@cdc.net) Received: (qmail 15713 invoked by uid 100); 22 Aug 1999 12:46:01 -0000 Date: Sun, 22 Aug 1999 08:46:01 -0400 (EDT) From: Mike Wade X-Sender: mwade@server1 To: Jamie Norwood Cc: freebsd-questions@freebsd.org, freebsd-net@freebsd.org Subject: Re: Rate limiting In-Reply-To: <19990822001221.A94758@ethereal.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sun, 22 Aug 1999, Jamie Norwood wrote: > If I am using a FreeBSD box as a firewall, can I set up > rate-limiting? IE, can I say that news can only use X KB/s, Quake > can only use Y, and so on? I have a machine I run here that I basically > want to always have bandwidth, even when I am playing quaake or reading > news on my other machine. Look into dummynet (part of ipfw now, man dummynet) and the ALTQ package (http://www.csl.sony.co.jp/person/kjc/programs.html) for FreeBSD. Example usage of dummynet to simulate a 128k ISDN link on : ipfw pipe 1 config bw 128Kbit/s ipfw add 1000 pipe 1 ip from to any in recv ipfw add 1001 pipe 1 ip from any to out xmit --- Mike Wade (mwade@cdc.net) Director of Systems Administration CDC Internet, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message