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: Fri, 23 Mar 2012 20:04:36 -0300	[thread overview]
Message-ID: <CAMpo4z1kGLWbfuoSnBx=_ECDWB15TxR1v50CwO+6+hjJQw72kg@mail.gmail.com> (raw)
In-Reply-To: <alpine.LNX.2.01.1203232355300.32477@frira.zrqbmnf.qr>

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, by using a
NfHook i can also call methods inside netfilter core to perform such
tasks as 'reinjecting' a packet ?


(Disconsider last e-mail, it wasn't visible to the list)

Em 23 de março de 2012 19:55, Jan Engelhardt <jengelh@medozas.de> escreveu:
> On Friday 2012-03-23 23:22, Fr3DBr wrote:
>
>>Ok i get you.
>>
>>Could you tell me how one must instantiate the nf queue entry in order
>>to use the nf_reinject method ?
>
> You do not strictly need an nfqueue entry. Just calling one of the
> NF_HOOK macros is sufficient.
--
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-23 23:04 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 [this message]
2012-03-23 23:06             ` Jan Engelhardt
2012-03-23 23:09               ` Fr3DBr
2012-03-24 20:20                 ` Fr3DBr
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='CAMpo4z1kGLWbfuoSnBx=_ECDWB15TxR1v50CwO+6+hjJQw72kg@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).