Re: ALTQ question

2005-06-03 Thread Bob
Russell Sutherland wrote:

> 3. All src IPs in the queue share
>the bandwith equally. That is each machine gets
>a maximum allocation of N/n Mbps. E.g. If there are 10 src 
> IP
>addresses sending traffic each one gets a maximum
>bandwidth of: N/10 Mbps
> 
> Can this be done using ALTQ? I believe its possible using dummynet.

It is possible in dummynet using masking.

But, as far as I know, ALTQ does not yet offer a way of saying "equal 
share to each host in this range".

You can do it manually, by adding queuing rules for each IP, but even 
with only three IPs I find that pretty ugly.
-- 
Bob


Re: altq question

2004-11-19 Thread colin
It wasnt very clear to me that i had to apply the queues for INcoming
connections... and right now yes, this really makes the difference.


On Thu, 18 Nov 2004 22:26:06 +0200, colin <[EMAIL PROTECTED]> wrote:
> First of all I want to say Hi to everybody because this is my first thread.
> 
> Im rather new to altq and pf but basically i want to limit the http
> traffic from one of my LANs machines.
> Ive tried all the schedulers but i havent noticed any differences between 
> them.
> 
> Here is a sample of what ive done using cbq:
> 
> altq on $EXT_IF cbq bandwidth 256Kb queue {http, other}
> 
> queue http bandwidth 6Kb priority 0 cbq (red)
> queue std bandwidth 90% cbq(default)
> 
> pass out on $EXT_IF proto tcp from $LAN_IP to any port = 80 \
>flags S/SA modulate state queue http
> 
> After ive applied these rules from LAN_IP i was able to browse web
> pages even with 10.24 Kb/s
> 
> pfctl -vvsq
> 
> [ measured:4.4  packets/s, 9.48Kb/s ]
> [ measured:4.3  packets/s, 10.24Kb/s ]
> 
> If this in not correct please tell me what do i miss and what should i
> do to limit that http traffic?
> 
> ps Im using OpenBSD 3.6
>