All of lore.kernel.org
 help / color / mirror / Atom feed
From: Catalin BOIE <util@deuroconsult.ro>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] how can i filter for a range of ports?
Date: Mon, 14 Apr 2003 10:19:49 +0000	[thread overview]
Message-ID: <marc-lartc-105031563523434@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105031449822405@msgid-missing>

On Mon, 14 Apr 2003, Adam Schrader wrote:

> how can i filter for a range of ports? I have seen people use 1024:32000
> when saying from port 1024 to 32000 but tc doesnt accept this? can
> somebody tell me how i can do this? -thanks

You cannot easyly do this, but there is a solution:
You can use a mask != 0xffff for ports.
Very probably you must use several lines to cover whole range.
So, as an example, for 1024 -> 1279 (1024 + 256 - 1) you can use
match tcp sport 1024 0xff00.

For 4096 -> 65535 you can use:
match tcp sport 4096 0xf000

I think you get the idea.

Or you can just use marking.

>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Tax Center - File online, calculators, forms, and more

---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-04-14 10:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-14 10:00 [LARTC] how can i filter for a range of ports? Adam Schrader
2003-04-14 10:19 ` Catalin BOIE [this message]
2003-04-16 11:14 ` Mattias Ahnberg
2003-04-16 16:41 ` Stef Coene

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-105031563523434@msgid-missing \
    --to=util@deuroconsult.ro \
    --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.