From owner-freebsd-security@FreeBSD.ORG Wed May 7 06:50:32 2003 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D87A37B401 for ; Wed, 7 May 2003 06:50:32 -0700 (PDT) Received: from web14102.mail.yahoo.com (web14102.mail.yahoo.com [216.136.172.132]) by mx1.FreeBSD.org (Postfix) with SMTP id 8853743FBD for ; Wed, 7 May 2003 06:50:29 -0700 (PDT) (envelope-from cguttesen@yahoo.dk) Message-ID: <20030507135029.50565.qmail@web14102.mail.yahoo.com> Received: from [193.212.28.158] by web14102.mail.yahoo.com via HTTP; Wed, 07 May 2003 15:50:29 CEST Date: Wed, 7 May 2003 15:50:29 +0200 (CEST) From: =?iso-8859-1?q?Claus=20Guttesen?= To: Chris McGee , freebsd-security@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: IPFW Bandwidth throttling? X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2003 13:50:32 -0000 Hi. > I am trying to limit outgoing SMTP traffic to about > 14 Mbps and these are > the IPFW rules I am using. > > ${fwcmd} add pipe 1 tcp from 192.168.0.0/24 to any > 25 out via dc0 > ${fwcmd} pipe 1 config bw 14Mbit/s > > something. I only get about half the bandwidth I had the same problem until I was told to add 'out xmit' to my config. You may want to change your line to: ${fwcmd} add pipe 1 tcp from 192.168.0.0/24 to any out xmit dc0 This should inform ipfw to parse the rule only once. > behavior? Is there something wrong with the rule > I'm running? > If the proposed change isn't a valid ipfw-syntax, you have to upgrade to ipfw2 which is the default in FreeBSD 5.x, whereas FreeBSD 4.x defaults to ipfw ver. 1. Read the man-page for ipfw on how to upgrade. There is probably a different approach staying with ipfw ver. 1, but I'm unaware of that. Regards Claus Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og virusscan