I've changed the list to questions@

On Wed, Nov 10, 2004 at 01:08:04PM -0500, Bob Ababurko wrote:
> 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.

The firewall rules determen what dummynets monitors. If you combine
inbound and outbound then it monitors that. You can also just monitor
http traffic. Its up to you.

> 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 
  ^^^^^^^^^ I don't understand the question. 
> 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.

There is no real priority only a weithed ruby round

You want you're fxp0 to limit in + out to 1MBit/s rigth?

> 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

I've also tried with this, but was not pleased with this. A number of
packets where to big than I expected. You migth want to give iplen a try
instead.

> ipfw add queue 2 ip from any to any out via fxp0
> ipfw add queue 4 ip from any to any out via fxp0
                                      ^^^ this is wrong.
> ipfw add 1000 allow all from any to any

Except for you mistake, everything looks ok.

-- 
Alex

Please copy the original recipients, otherwise I may not read your reply.
WWW: http://www.kruijff.org/alex/FreeBSD/
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to