Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: "Alexandru Coseru" <alex_spam@distinctgroup.net>
To: lartc@vger.kernel.org
Subject: [LARTC] HTB with both fwmark and IP
Date: Wed, 05 Nov 2003 11:38:42 +0000	[thread overview]
Message-ID: <marc-lartc-106803418220372@msgid-missing> (raw)

[-- 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 --]

                 reply	other threads:[~2003-11-05 11:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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-106803418220372@msgid-missing \
    --to=alex_spam@distinctgroup.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox