Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Sergei Zhirikov <sfzhi@yahoo.com>
To: netfilter@vger.kernel.org
Subject: Re: question about esp and policy matching rule
Date: Wed, 21 Jul 2010 15:46:14 +0200	[thread overview]
Message-ID: <i26tp0$4q3$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTimkhSedZPQcdaGeNfNTBkm9lJkGkau_4j72VCMo@mail.gmail.com>

On 2010-07-20 18:56, ratheesh k wrote:
>
> After decapsulation , will the ip packet will traverse prerouting chain again ?
>

Do you mean the prerouting chain of "nat" table (as opposed to "mangle" or "raw" table)?

I don't know for sure, but I would think that yes. You could perform a simple experiment to know for sure.

When using tunnel mode the destination of an incoming encapsulated packet can be another host (usually in the local network), while the destination of the ESP packet is the machine where the IPSec tunnel ends, so those two are to be routed differently. I'm just thinking aloud based more on my general undertanding of IPSec rather than on the knowledge of the implementation.

And don't forget that only the first packed in a connection is visible in the prerouting chain of "nat" table.

--
Sergei.


  reply	other threads:[~2010-07-21 13:46 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-19  3:29 question about esp and policy matching rule Richard Knight
2010-07-19 11:14 ` Sergei Zhirikov
2010-07-20 16:56   ` ratheesh k
2010-07-21 13:46     ` Sergei Zhirikov [this message]
2010-07-21 13:55       ` Jan Engelhardt
2010-07-19 11:44 ` Jan Engelhardt
2010-07-19 13:34   ` Richard Knight
2010-07-19 16:06     ` 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='i26tp0$4q3$1@dough.gmane.org' \
    --to=sfzhi@yahoo.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