From: "Nils Lichtenfeld" <Nils.Lichtenfeld@gmx.net>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] filters with multiple sport matches
Date: Tue, 30 Apr 2002 16:21:54 +0000 [thread overview]
Message-ID: <marc-lartc-102018369209154@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102018219607298@msgid-missing>
Hello!
ewan wrote:
> I want to filter traffic from source ports X and Y into a filter I
> try
[...]
> tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \
> match ip sport X 0xffff \
> match ip sport Y 0xffff \
> flow id 1:30
>
> I get and illegal match error. whats going wrong and how to i do it
> properly?
A paket can only have one sourceport, so the match above can not work.
You will have to use one filter for each sport!
tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \
match ip sport X 0xffff \
flow id 1:30
tc filter add dev eth0 parent 1: protocol ip prio 9 u32 \
match ip sport Y 0xffff \
flow id 1:30
Greetings, Nils
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
next prev parent reply other threads:[~2002-04-30 16:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-30 15:54 [LARTC] filters with multiple sport matches ewan
2002-04-30 16:21 ` Nils Lichtenfeld [this message]
2002-04-30 16:25 ` ewan
2002-04-30 16:43 ` Nils Lichtenfeld
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-102018369209154@msgid-missing \
--to=nils.lichtenfeld@gmx.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 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.