Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 2004 13:08:04 -0500
From:      Bob Ababurko <ababurko@adelphia.net>
To:        freebsd-ipfw@freebsd.org
Subject:   dummynet bw cumulative limit
Message-ID:  <6.0.3.0.0.20041110124952.024fa788@mail.dc2.adelphia.net>

next in thread | raw e-mail | index | archive | help
HEllo all-

We are interested in limiting the bandwidth of a newly setup 
connection.  We are on a 100 Mb/s switch port and want to keep it to 1 Mb/s 
for now. Forgive my ignorance, but do they measure this cumulative(inbound 
+ outbound)?....I would assume so, but I would like to confirm this since 
the rate for overage is not within the budget for now.

Assuming the conservative, how does the dummynet config have to be setup 
fpor thsi to occur?...or can it be configured for both inbound and 
outbound?  Right now, I have the below config and since I have not put the 
box on the network yet, I have not been able to look at the MRTG to figure 
the answer.  I am thinking that this config may limit to 1 meg in both 
directions....I am just not looking forward to overage fees right off the bat!

btw, this config is for the priority of the udp/tcp acks in both 
directions.  I am not sure if this is going to work so any comments on it 
would be appreciated.

thanks,
Bob

ipfw -f flush
ipfw pipe 1 config bw 1000kbits/s

ipfw queue 1 config pipe 1 weight 100
ipfw queue 2 config pipe 1 weight 1 mask all
ipfw queue 3 config pipe 1 weight 100
ipfw queue 4 config pipe 1 weight 1 mask all

ipfw add 100 queue 1 udp from any to any out via fxp0
ipfw add 101 skipto 1000 udp from any to any out via fxp0
ipfw add 100 queue 3 udp from any to any in via fxp0
ipfw add 101 skipto 1000 udp from any to any in via fxp0

ipfw add 110 queue 1 tcp from any to any out via fxp0 tcpflags ack
ipfw add 111 skipto 1000 tcp from any to any out via fxp0 tcpflags ack
ipfw add 110 queue 3 tcp from any to any in via fxp0 tcpflags ack
ipfw add 111 skipto 1000 tcp from any to in out via fxp0 tcpflags ack

ipfw add queue 2 ip from any to any out via fxp0
ipfw add queue 4 ip from any to any out via fxp0
ipfw add 1000 allow all from any to any



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.3.0.0.20041110124952.024fa788>