From: Udo Schneider <Udo.Schneider@homeaddress.de>
To: netfilter@vger.kernel.org
Subject: Re: conntrack/state with QUEUE target
Date: Fri, 27 Nov 2009 16:54:11 +0100 [thread overview]
Message-ID: <heosno$ngc$1@ger.gmane.org> (raw)
In-Reply-To: <heoprj$dpr$1@ger.gmane.org>
All,
> This worked fine. Now however we have the requirement for more granular
> "stateful" Rules. I though it should be possible to combine
> state/conntrack with the QUEUE target ... but this doesn't seem to work.
>
> -t mangle -A FORWARD -p tcp --dport 80 -m state --state NEW,ESTABLISHED
> -j QUEUE
I think I got it.
-t mangle -A FORWARD -p tcp --dport 80 -m state --state NEW,ESTABLISHED
-j QUEUE
-t mangle -A FORWARD -p tcp --sport 80 -m state --state ESTABLISHED
-j QUEUE
This combination seems to work. Coming from a Check Point Background I
assumed that the statefulness provided by state/conntrack means that I
only have to specify the initiating connection - replies are
accepted/queued automagically based on connection data.
However I seem to be wrong - or did I completely miss the point?
CU,
Udo
next prev parent reply other threads:[~2009-11-27 15:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-27 15:05 conntrack/state with QUEUE target Udo Schneider
2009-11-27 15:54 ` Udo Schneider [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-11-28 9:49 Mart Frauenlob
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='heosno$ngc$1@ger.gmane.org' \
--to=udo.schneider@homeaddress.de \
--cc=netfilter@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.