Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2003 14:32:51 +0100
From:      "Roger " <raqlist@fareham.org>
To:        freebsd-security@freebsd.org
Subject:   Re: IPFW Bandwidth throttling?
Message-ID:  <3EB91913.3069.4E3B6B49@localhost>
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
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,
> Chris
man 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3EB91913.3069.4E3B6B49>