Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: Andreas Mueller <andreas@stapelspeicher.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Hi, a important doubt
Date: Sat, 20 May 2006 23:17:01 +0000	[thread overview]
Message-ID: <20060520231701.GA4047@lintera> (raw)
In-Reply-To: <a7f3ed990605201535y78848acaq583417aeadaff398@mail.gmail.com>

In tcng you can use common comparators on "if", for example:

if tcp_sport > 1000 && tcp_sport < 1200 ....

tcng translates this to several u32 matches with masks for tc use,
which is afaik the only way with tc to match a port-range.

It may be easier to do this with iptables
(although I dislike using two different interfaces for one purpose).

Andreas

Juan Felipe Botero wrote:
> How can i put a port range in a tcng or tc configuration
> >
> >Does somebody know???
> >
> >It´s important, cause i need to regulate the bandwidth from the TCP port
> >1054 until TCP port 1200, how can i do that????????
> >
> >

> _______________________________________________
> LARTC mailing list
> LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

      reply	other threads:[~2006-05-20 23:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-20 22:35 [LARTC] Hi, a important doubt Juan Felipe Botero
2006-05-20 23:17 ` Andreas Mueller [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=20060520231701.GA4047@lintera \
    --to=andreas@stapelspeicher.org \
    --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