All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Warasin <peter@endian.com>
To: netfilter@vger.kernel.org
Subject: rules matching whether or not connection passed through QUEUE
Date: Tue, 09 Feb 2010 18:28:05 +0100	[thread overview]
Message-ID: <4B719B25.1030800@endian.com> (raw)

hi guys,

recently I run into a problem using the QUEUE target and I wonder if
there's a simple solution for it.

Is there an easier way for matching packets of a connection whose
initiation packet (NEW) has been QUEUE'd?
Something like -m queue --syn-passed-through-queue 0?




I have a snort-inline running which grabs packets from QUEUE target,
which is working fine.

Now, I have also an accept-all for ESTABLISHED and RELATED in INPUT and
FORWARD, which is one of the first rules in order to bypass all other
(many and complex) rules which handle only state NEW.
Quiet standard setup I would say.

Now I would like to pass some connections through QUEUE and other not.
That's the problem.
The accept-all should pass all consecutive packets of those connections
which went through QUEUE, also through QUEUE and other packets whose
initiating packet has been ACCEPT'ed previously should still be
ACCEPT'ed without sending through QUEUE.

Ok, I could remove that accept-all and ACCEPT or QUEUE
ESTABLISHED/RELATED packets before every single NEW accepting rule, but
then every packet of an accepted connection has to pass through all
those rules.


Thank you in advance

peter

-- 
:: e n d i a n
:: open source - open minds

:: peter warasin
:: http://www.endian.com   :: peter@endian.com

                 reply	other threads:[~2010-02-09 17:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4B719B25.1030800@endian.com \
    --to=peter@endian.com \
    --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.