IPFW Bandwidth throttling?

Claus Guttesen cguttesen at yahoo.dk
Wed May 7 06:50:32 PDT 2003


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


More information about the freebsd-security mailing list