Re: htb + tc filter

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday 28 September 2005 15:30, choros wrote:
> the last filter should pass all traffic whitch dont pass the filters to
> class 10:2 but this is not the case.

I'm not sure the order you add filters is actually the order filters are 
traversed... so why not use the prio parameter to make sure that your 
catchall comes last?

A completely different approach would be to just put the traffic you don't 
want to be shaped into a HTB class as well, by putting a fat class on top,
like this:

HTB Qdisc
|
\--- HTB root class (100mbit)
     |
     \--- HTB internet class (256kbit)
     \--- HTB lan class (100mbit minus 256kbit)

(I'm actually using a value lower than 100mbit though - due to overhead and 
other issues, in a 100mbit network you can never actually reach the full 
100mbit speed).

That way, I get packets that come from the internet and go to the LAN 
shaped down to 256kbit, while internal lan traffic (e.g. router is also a 
fileserver for the local network) can go by unaffected.

By the way, if you let this internal lan traffic go by completely unshaped, 
chances are that load gets so high it will even choke the internet 
connection. So even if the packets are allowed to go fast, it's a good 
idea to shape them in order of guaranteeing a 256kbit or whatever channel 
for internet.

HTH
Andreas Klauer
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux