Date: Wed, 7 May 2003 15:50:29 +0200 (CEST) From: =?iso-8859-1?q?Claus=20Guttesen?= <cguttesen@yahoo.dk> To: Chris McGee <chris@xecu.net>, freebsd-security@freebsd.org Subject: Re: IPFW Bandwidth throttling? Message-ID: <20030507135029.50565.qmail@web14102.mail.yahoo.com> In-Reply-To: <Pine.BSF.4.44.0305070900170.96202-100000@thunder.xecu.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030507135029.50565.qmail>