Linux Netfilter discussions
 help / color / mirror / Atom feed
* Per IP maximal speed limit inside HTB class
@ 2008-01-16 11:30 Покотиленко Костик
  2008-01-16 16:04 ` Dzianis Kahanovich
  0 siblings, 1 reply; 2+ messages in thread
From: Покотиленко Костик @ 2008-01-16 11:30 UTC (permalink / raw)
  To: netfilter

Hi there,

I already have HTB class tree which makes channel division between
client groups.
One of those groups now has to have clients with limited maximal speed
to implement "unlimited" traffic billing.

So the question is: is there any queueing discipline which can limit
maximal speed for any source/destination IP with one rule so that I
would not have to insert clases for each new IP?

For example it would be perfect if I could make something like this:

+ HTB class with from 5 Mbit/s to 5 Mbit/s
  | HTB class with from 1 Mbit/s to 5 Mbit/s prio 2 (for clients without
unlimited traffic)
  | HTB class with from 4 Mbit/s to 5 Mbit/s prio 1 (for clients with
unlimited traffic)
    + {some limit qdisc}
      | max speed limit 128 KBit/s (for 128K unlimited traffic) prio 1
      | max speed limit 256 KBit/s (for 128K unlimited traffic) prio 2
      | max speed limit 512 KBit/s (for 128K unlimited traffic) prio 3

Any hints?

-- 
Покотиленко Костик <casper@meteor.dp.ua>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-16 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-16 11:30 Per IP maximal speed limit inside HTB class Покотиленко Костик
2008-01-16 16:04 ` Dzianis Kahanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox