Skip to contentSkip to conversation

htb problem

LARTC Miguel A. Novo 1 participant 1 message Jun 20, 2003

lore
Share & tools
lore
#0 lore raw

I have the same problem using tc and iptables. All traffic goes to "default".

I tried using tcng too: (eth0 as local NIC, eth1 as Inet nic, eth1 masquerading via iptables and bridged to DSL -I have the internet IP on NIC 2-)

#include "fields.tc"
#include "ports.tc"

dev eth1 {
    egress {

            class ( <$ssh> )    if tcp_sport =  22;
            class ( <$smtp> )   if tcp_dport =  25;
            class ( <$other> )  if 1 ;

            htb {
                    class ( rate 298kbps, ceil 298kbps ) {
                        $ssh   = class ( rate 32kbps, ceil 64kbps ) { sfq; }
;
                        $smtp  = class ( rate 32kbps, ceil 290kbps ) {
sfq; } ;
                        $other = class ( rate 192kbps, ceil 298kbps ) {
sfq; } ;
                    }
            }
    }
}

But it didn't work (in this last case, I'm afraid my tcng-ing is very incomplete. :(

--Miguel

Quoted 5 lines

Hey I hve the same problem. My packets are marked, my classes are OK my filters are set OK
and all packets are passing through the root class!!
I think that this is a big problem. A know 1 more person that has the same problem!<br><br>

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/