netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fr3DBr <fr3dbr@gmail.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Jeff Haran <jharan@bytemobile.com>,
	"netfilter-devel@vger.kernel.org"
	<netfilter-devel@vger.kernel.org>
Subject: Re: Netfilter Packet Reinjection
Date: Sat, 24 Mar 2012 17:20:01 -0300	[thread overview]
Message-ID: <CAMpo4z0GRn7WD+4K+2EA1EbvKsvP+Ohu1i1PTSNkKHe0rBwiTA@mail.gmail.com> (raw)
In-Reply-To: <CAMpo4z0GcztvVUCDR7Ay97Z=LTB-=JFnV_dNtw4__u1YEKTeSQ@mail.gmail.com>

Hey,

i've been trying this, but it seens as soon i call NF_HOOK, the whole
thing freezes, like if it entered in a infinite loop, i tried adding
some sanity check to avoid 'recursive' looping and it seemed to avoid
this scenario, but now it just freezes and only resetting the OS put
it back to work (since it wont load the module)...

Any ideas ?!

Em 23 de março de 2012 20:09, Fr3DBr <fr3dbr@gmail.com> escreveu:
> Yeah i was looking this, so i'll try through the NFHook and see what happens...
>
> As long i call it with the properly 'event' identifier, everything
> should works i guess.
>
> Em 23 de março de 2012 20:06, Jan Engelhardt <jengelh@medozas.de> escreveu:
>> On Saturday 2012-03-24 00:04, Fr3DBr wrote:
>>
>>>Well, i have a hook to capure the packets right now... but after
>>>storing then in other place, after some 'tests' i perform around then
>>>i have to 're-create' part of the packet flow (like a proxy) and then
>>>let the real packets from the source, flow locally or remotelly
>>>through forwarding to its destinations.
>>>
>>>But i didn't understood well what i would do with NF_HOOK
>>
>> If you do read the function body of nf_reinject, you will see that it
>> too will only call nf_iterate (which is the same that NF_HOOK eventually
>> gets to do).
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2012-03-24 20:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 21:58 Netfilter Packet Reinjection Fr3DBr
2012-03-23 22:11 ` Jeff Haran
2012-03-23 22:12   ` Fr3DBr
2012-03-23 22:20     ` Jeff Haran
2012-03-23 22:22       ` Fr3DBr
2012-03-23 22:55         ` Jan Engelhardt
2012-03-23 23:04           ` Fr3DBr
2012-03-23 23:06             ` Jan Engelhardt
2012-03-23 23:09               ` Fr3DBr
2012-03-24 20:20                 ` Fr3DBr [this message]
2012-03-24 21:31                   ` Pablo Neira Ayuso
2012-03-25  1:24                     ` Fr3DBr
2012-03-25  1:54                       ` Jan Engelhardt
2012-03-25  1:57                         ` Fr3DBr

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=CAMpo4z0GRn7WD+4K+2EA1EbvKsvP+Ohu1i1PTSNkKHe0rBwiTA@mail.gmail.com \
    --to=fr3dbr@gmail.com \
    --cc=jengelh@medozas.de \
    --cc=jharan@bytemobile.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).