All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roy" <roy@xxx.lt>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] match ip dst works, match ip dport doens't.
Date: Mon, 02 Feb 2004 03:10:10 +0000	[thread overview]
Message-ID: <00b201c3e93a$11874ac0$030aa8c0@t> (raw)
In-Reply-To: <001b01c3e934$27886fd0$2a21a8c0@qha>


> Hi,
>
> I'm trying to limit the maximum outbound bandwidth for each destination
> port using '"'match ip dport $port 0xffff'"' u32 classifier. But it seems
> that it's not filtered by this classifier. I'm using kernel 2.4.24 with
> almost all filter-related options configured, and tc patched to support
> HTB.
>
> Below is all commands I used to configure the outbound rate.
> -------------------------------
> $TC qdisc del dev eth0 root > /dev/null 2>&amp;1
> $TC qdisc add dev eth0 root handle 1: htb
> $TC class add dev eth0 parent 1: classid 1:1 htb rate $RATEmbit ceil
> $RATEmbit
> $TC filter add dev eth0 parent 1: protocol ip prio 1 u32 match ip dport
> $PORT 0xffff flowid 1:1
> -------------------------------

Is it ALL script? since filter priorities means alot
and are you sure you want to limit destination(client) ports not
source(sever)?

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

  reply	other threads:[~2004-02-02  3:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-02  2:27 [LARTC] match ip dst works, match ip dport doens't Q-ha Park
2004-02-02  3:10 ` Roy [this message]
2004-02-02  4:44 ` Q-ha Park

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='00b201c3e93a$11874ac0$030aa8c0@t' \
    --to=roy@xxx.lt \
    --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.