rules matching whether or not connection passed through QUEUE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux