Skip to contentSkip to conversation

tc filter howto

LARTC Emo Terziev 3 participants 4 messages Feb 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,
probably is silly but i can't find how can i define
tc filter for my needs

Situation:
iptables mark all packages with destanation
192.168.1.0/24 with mark 6
tc use HTB.

My Problem is how can I say:
packages with mark 6 and with destanation ( or
source) A.B.C.D to follow xx:xx

Thanks in advance
Emo

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 4 lines · Emo Terziev

Hi,
probably is silly but i can't find how can i define
tc filter for my needs

Quoted 8 lines

Situation:
iptables mark all packages with destanation
192.168.1.0/24 with mark 6
tc use HTB.

My Problem is how can I say:
packages with mark 6 and with destanation ( or
source) A.B.C.D to follow xx:xx

If you use the fw filter, you can match the mark. If you use the u3é filer, you can match the destination. But you can't combine both.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to Emo Terziev
Quoted 19 lines · Emo Terziev
Quoted 6 lines

Hi,
probably is silly but i can't find how can i define tc filter for my needs

Quoted 10 lines

Situation:
iptables mark all packages with destanation
192.168.1.0/24 with mark 6
tc use HTB.

My Problem is how can I say:
packages with mark 6 and with destanation ( or
source) A.B.C.D to follow xx:xx

Quoted 7 lines

If you use the fw filter, you can match the mark. If you use the u3é filer, you can match the destination. But you can't combine both.

Stef

Then, what about using cascade operations?
Cannot you direct the traffic matching the first pattern on a class which will constitue a parent for a second class which will contain traffic matching the second pattern?

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

#3 lore raw
In reply to Emo Terziev
Quoted 17 lines · Emmanuel Guiton
Quoted 17 lines · Emo Terziev
Quoted 4 lines

Hi,
probably is silly but i can't find how can i define tc filter for my needs

Quoted 8 lines

Situation:
iptables mark all packages with destanation
192.168.1.0/24 with mark 6
tc use HTB.

My Problem is how can I say:
packages with mark 6 and with destanation ( or
source) A.B.C.D to follow xx:xx

If you use the fw filter, you can match the mark. If you use the u3é filer, you can match the destination. But you can't combine both.

Quoted 6 lines
Quoted 1 line

Stef

Then, what about using cascade operations?
Cannot you direct the traffic matching the first pattern on a class which will constitue a parent for a second class which will contain traffic matching the second pattern?

Yes. But you will need an extra level of classes. But why not using more marks so you only need a fw filter?

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

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