From: Eric Leblond <eric@inl.fr>
To: ilninno <ilninno@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: How can i leave a packet to continue the iptables ruleset checking?
Date: Fri, 02 Jan 2009 00:12:13 +0100 [thread overview]
Message-ID: <1230851533.5185.20.camel@ice-age> (raw)
In-Reply-To: <92770c820901011255y76b557b7ha4850c54fd62b28e@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1092 bytes --]
Hi,
Le jeudi 01 janvier 2009 à 21:55 +0100, ilninno a écrit :
> Hello! I have some problems with netfilter_queue:
>
> I created a queue and registered my c program, when a packet matchs
> with the iptables rules my code get the event. i usually return
> NF_ACCEPT and NF_DROP, but sometimes i need to leave the packet to
> continue with iptables rules checking, i tried with:
>
> How can i leave the packet to continue in iptables ruleset without
> beginning again? Thanks for your time.
You really can't. The only known workaround is to send the NF_REPEAT
verdict and mark the packet. The mark can then be used to "jump" to the
correct rule.
This is not really nice but it works.
I've recently cooked a patch for snort-inline using this method:
http://sourceforge.net/mailarchive/forum.php?thread_name=1228209364-7798-1-git-send-email-eric%40inl.fr&forum_name=snort-inline-users
The method seems to work quiet well but it may not be suitable for more
complex cases.
BR,
--
Eric Leblond <eric@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2009-01-01 23:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-23 21:02 How can i leave a packet to continue the iptables ruleset checking? ilninno
2009-01-01 20:55 ` ilninno
2009-01-01 23:12 ` Eric Leblond [this message]
2009-01-12 5:10 ` Patrick McHardy
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=1230851533.5185.20.camel@ice-age \
--to=eric@inl.fr \
--cc=ilninno@gmail.com \
--cc=netfilter-devel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).