"proper" method of changing dummynet limit ?

Brooks Davis brooks at freebsd.org
Wed Jan 17 16:13:35 UTC 2007


On Tue, Jan 16, 2007 at 11:22:10AM -0800, Arone Silimantia wrote:
> Hello,
> 
> I currently implement a dummynet rate limit, after boot up, with this sequence:
> 
> sysctl -w net.inet.ip.fw.one_pass=0
> ipfw pipe 1 config bw 10Mbit/s
> ipfw add 10000 pipe 1 all from any to any
> 
> Easy.
> 
> My question is, if I want to change the rate from 10 Mbit/s to 20 Mbit/s, do I just reissue the 'ipfw pipe' command:
> 
> ipfw pipe 1 config bw 20Mbit/s
> 
> while leaving the ipf rule in place ?  Or should I tear down rule 10000 first, and tear down the pipe, and start from scratch ?
> 
> Is it safe to just reissue the pipe command on the fly like that ?

Just changing the pipe config works for me on a mirror server that
updates the max inbound bandwidth hourly.

-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ipfw/attachments/20070117/5d620f5b/attachment.pgp


More information about the freebsd-ipfw mailing list