From: "Gabor Csuri" <csucsu@dunasor.hu>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] Why my script doesn't work ???
Date: Sun, 08 Dec 2002 22:28:26 +0000 [thread overview]
Message-ID: <marc-lartc-103938640304462@msgid-missing> (raw)
In-Reply-To: <marc-lartc-103926856707555@msgid-missing>
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/
prev parent reply other threads:[~2002-12-08 22:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-07 13:44 [LARTC] Why my script doesn't work ??? Gabor Csuri
2002-12-07 15:11 ` Stef Coene
2002-12-07 21:41 ` Gabor Csuri
2002-12-08 12:13 ` Stef Coene
2002-12-08 22:28 ` Gabor Csuri [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-103938640304462@msgid-missing \
--to=csucsu@dunasor.hu \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.