RE: Why my script doesn't work ???

Linux Advanced Routing and Traffic Control

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

 



Hi Stef,

You were alright.
I had to add a priority to my filter :

tc filter add dev $DEV parent 1:0 protocol ip prio 1 \
   handle 1 fw flowid 1:40

Thanks a lot, Gabor.

> On Saturday 07 December 2002 22:41, Gabor Csuri wrote:
> > Hi,
> >
> >  here is my outputs coming:
> >
> > [root@basement sysconfig]# iptables -t mangle -nvL
> > Chain FORWARD (policy ACCEPT 2043K packets, 1812M bytes)
> >  pkts bytes target     prot opt in     out     source
> > destination
> > 88476   60M MARK       tcp  --  *      *       192.168.1.0/24
> > !192.168.1.0/24     tcp dpts:1024:1862 MARK set 0x1
> > 53899   13M MARK       tcp  --  *      *       192.168.1.0/24
> > !192.168.1.0/24     tcp dpts:1864:65535 MARK set 0x1
> Ok, the packets are marked.
>
> > [root@basement sysconfig]# tc -s -d class show dev ppp0
> > class cbq 1:40 parent 1:1 leaf 40: rate 8Kbit cell 8b prio 2/2
> weight 8Kbit
> > allot 1600b
> > level 0 ewma 5 avpkt 1000b maxidle 23us
> >  Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
> >   borrowed 0 overactions 0 avgidle 624 undertime 0
> So no packet is redirected to class 1:40 like you want.  Is it
> possible that
> you have a filter that matches the same packets and it processed
> before the
> extra filter you added?  You can try to put your filter at the top of the
> script or give it a lower prio parameter so it has a higher priority.
>
> Stef
>
> --
>
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.oftc.net
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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