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 I've tried multiple tweaks to the pipe rule and I seem to be missing something. I only get about half the bandwidth I specify. Is this normal behavior? Is there something wrong with the rule I'm running? Thanks, Chris xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Chris McGee 301-682-9972 Xecunet www.xecu.net xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Dialup * Webhosting * E-Commerce * High-Speed Access
On Wed, May 07, 2003 at 09:03:55AM -0400, Chris McGee wrote:> > 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 > > I've tried multiple tweaks to the pipe rule and I seem to be missing > something. I only get about half the bandwidth I specify. Is this normal > behavior? Is there something wrong with the rule I'm running?Are you sure you mean Mbit/s and not MByte/s?
Date sent: Wed, 7 May 2003 09:03:55 -0400 (EDT) From: Chris McGee Subject: IPFW Bandwidth throttling?> 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 > > I've tried multiple tweaks to the pipe rule and I seem to be missing > something. I only get about half the bandwidth I specify. Is this normal > behavior? Is there something wrong with the rule I'm running? > > Thanks, > Chrisman ipfw, didn't show anything obvious, have you checked your net.inet.ip.fw.one_pass sysctl var. If it's 0 then the rest of your rules run on the packet as well (I think). Have you got a return rule set as well ? Is anything limiting what the outside world is sending back ? Roger.
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 bandwidthI 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
Chris McGee wrote:> > 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 > > I've tried multiple tweaks to the pipe rule and I seem to be missing > something. I only get about half the bandwidth I specify. Is this normal > behavior? Is there something wrong with the rule I'm running? >The pipe config & pipe rule look correct. Try 'ipfw pipe list' to confirm the pipe is configured for the correct bandwidth and not dropping excessive amounts of packets. Is dc0 configured for 100Mbps or 10Mbps? 7Mbps is close to the ceiling for a 10Mbps link. Are you sure you have ~2MBps worth of smtp traffic to pass when you're watching? If you increase the bandwidth on the pipe do you see more than the ~7Mbps you're currently seeing? good luck, greg