From: Susan Hinrichs <shinrich@network-geographics.com>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: msk@cloudmark.com, netfilter@vger.kernel.org
Subject: Re: nfqueue vs. tproxy
Date: Thu, 08 Dec 2011 04:49:11 -0600 [thread overview]
Message-ID: <1323341353.17564.207.camel@kiki> (raw)
In-Reply-To: <alpine.LNX.2.01.1112080512510.15734@frira.zrqbmnf.qr>
On Thu, 2011-12-08 at 05:21 +0100, Jan Engelhardt wrote:
> On Thursday 2011-12-08 02:43, Susan Hinrichs wrote:
>
> >You could do that, but the second recipient of the code would lose the
> >original destination address and port information.
>
> Um, no.
> The second recipient of the packet (code? no.) is either
>
> (a) intentionally the same as the original destination, therefore the
> daddr-dport tuple is already known (obviously)
>
> (b) intentionally not the same as the original destination, i.e. not
> meant to know the original daddr-dport tuple.
>
> And if you need, you can add extra bytes into the stream to tell the new
> peer (in case of (b)) the original address within the stream, provided
> the protocol can carry that information. If the protocol does not allow
> for it, it is not going to be interesting for the recipient anyway.
>
> Oh and don't top-post.
>
> >On Wed, 2011-12-07 at 16:25 -0800, msk@cloudmark.com wrote:
> >> I've been reading up on tproxy and nfqueue. Just to confirm my understanding
> >> of the two:
> >>
> >> Could one write a layer of code that uses the nfq_*() functions to basically
> >> implement what tproxy can do by simply adjusting the destination information
> >> and checksum, and then returning NF_REPEAT verdicts for each?
> >>
> >> Thanks,
> >> -MSK
Thanks for the clarification. I see now. And sorry for the breach of
etiquette.
next prev parent reply other threads:[~2011-12-08 10:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-08 0:25 nfqueue vs. tproxy msk
2011-12-08 1:43 ` Susan Hinrichs
2011-12-08 4:21 ` Jan Engelhardt
2011-12-08 10:49 ` Susan Hinrichs [this message]
2011-12-08 2:21 ` Jan Engelhardt
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=1323341353.17564.207.camel@kiki \
--to=shinrich@network-geographics.com \
--cc=jengelh@medozas.de \
--cc=msk@cloudmark.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox