From: Andy Furniss <andy.furniss@dsl.pipex.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Inverting filters
Date: Thu, 04 Nov 2004 15:42:00 +0000 [thread overview]
Message-ID: <418A4DC8.3040607@dsl.pipex.com> (raw)
In-Reply-To: <200411031246.12523.nikolay@domonet.ru>
Nikolay Dmitriev wrote:
> How to invert match parameter?
>
> Like this:
>
> tc filter add dev eth0 protocol ip parent 1: prio 1 u32 \
> match ip src 10.20.30.40 \
> match ip dst !10.30.0/24 \
> match ip dst !10.40.0/24 \
> flowid 1:20
I'm not sure - but ISTR failing to invert u32 some time ago. Generally
iptables would like a space round the ! - but I don't think it helps u32.
Maybe you could do it with bit masks.
Andy.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2004-11-04 15:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-03 9:46 [LARTC] Inverting filters Nikolay Dmitriev
2004-11-04 15:42 ` Andy Furniss [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=418A4DC8.3040607@dsl.pipex.com \
--to=andy.furniss@dsl.pipex.com \
--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.