* [LARTC] HTB with both fwmark and IP
@ 2003-11-05 11:38 Alexandru Coseru
0 siblings, 0 replies; only message in thread
From: Alexandru Coseru @ 2003-11-05 11:38 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 995 bytes --]
Hello..
How can I specify a class for htb based on a fwmark and user ip ?
For instance:
I have some routes marked with fwmark and their are very-high speed connections... But only to some IP's..
For the rest , I must limit the user to 64Kbits
Now , how can I limit the high speed connections ?
I must create a rule and take in account both fwmark and IP ?
To be more specific , I want to limit the user 10.0.0.1 to 1Mbit for the routes marked with fwmark 1 (thoose are taken from zebra)
The rules I have now are:
tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match ip dst 10.0.0.1/32 flowid 1:20
tc filter add dev eth0 parent 1:0 prio 99 protocol ip handle 2 fw flowid 1:99
I've tried this:
class: 1:20 - 64 kbit
class 1:99 - 100Mbit
class 1:30 - 1 Mbit
tc filter add dev eth0 protocol ip parent 1:0 prio 2 u32 match ip dst 10.0.0.1/32 protocol ip handle 2 fw flowid 1:30
but it failed..
Anybody can help me ?
Thanks
Alex
[-- Attachment #2: Type: text/html, Size: 3068 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-05 11:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-05 11:38 [LARTC] HTB with both fwmark and IP Alexandru Coseru
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.