From: Mart Frauenlob <mart.frauenlob@chello.at>
To: netfilter@vger.kernel.org
Subject: Re: conntrack/state with QUEUE target
Date: Sat, 28 Nov 2009 10:49:48 +0100 [thread overview]
Message-ID: <4B10F23C.4010208@chello.at> (raw)
Udo Schneider wrote:
> 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?
>
Hello,
the connection tracking itself will never do anything with a packet,
than tracking it.
What is done with the state information, that is put onto the packet, is
totally up to the user.
NO automagic is done.
i.e. what if you don't want replies in your queue, etc...
Also take care about state 'INVALID' and 'UNTRACKED' packets, your queue
will not see them...
btw: NFQUEUE is the successor of QUEUE.
Regards
Mart
next reply other threads:[~2009-11-28 9:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-28 9:49 Mart Frauenlob [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-11-27 15:05 conntrack/state with QUEUE target Udo Schneider
2009-11-27 15:54 ` Udo Schneider
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=4B10F23C.4010208@chello.at \
--to=mart.frauenlob@chello.at \
--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.