Re: IPSec Passthrough

Vinay K Nallamothu <vinay-rc@naturesoft.net> Thu, 01 May 2003 06:47 UTC

Received: from lists.tislabs.com (portal.gw.tislabs.com [192.94.214.101]) by above.proper.com (8.12.8p1/8.12.8) with ESMTP id h416lVi2018529; Wed, 30 Apr 2003 23:47:32 -0700 (PDT) (envelope-from owner-ipsec@lists.tislabs.com)
Received: by lists.tislabs.com (8.9.1/8.9.1) id CAA12954 Thu, 1 May 2003 02:01:02 -0400 (EDT)
Subject: Re: IPSec Passthrough
From: Vinay K Nallamothu <vinay-rc@naturesoft.net>
To: Mark Siler <msiler@hcin.net>
Cc: ipsec@lists.tislabs.com
In-Reply-To: <1772A2E865ABD411B18900508BB1B88F05ED7D8C@SVARLEXC07>
References: <1772A2E865ABD411B18900508BB1B88F05ED7D8C@SVARLEXC07>
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10)
Date: Thu, 01 May 2003 11:40:03 +0530
Message-Id: <1051769403.1131.40.camel@lima.royalchallenge.com>
Mime-Version: 1.0
Sender: owner-ipsec@lists.tislabs.com
Precedence: bulk

On Wed, 2003-04-30 at 20:37, Mark Siler wrote:
> I'm curious on how IPSec passthrough works.  I know AH prevents a
> traditional NAT from occurring, but how do the SOHO routers (Linksys,
> D-Link, Ascend, etc) accomplish the IPSec passthrough?

These devices track the IPsec connections by looking at the SPI in
IKE/ESP headers.

When they first see the IKE packets from the client behind the NAT they
note down the SPI value, client address and then masquarade the packet
as usual with its own IP.

When they see the packets from the remote IPsec peer, it looks into the
table using SPI and replaces the destination with client's IP.

This mechanism works only with ESP and not with AH which is fine as most
of the road warriors connect to IPsec gateways.

You can get more details about this in sections 9.0 to 9.3 of
draft-ietf-ipsec-ikev2-tutorial-01.txt.

>  Do they
> encapsulate the entire IPSec packet from the client?
No

>  I keep reading
> about a Transparent Mode and Tunnel Mode,
For NAT-T unware IPsec peers, the above mentioned mechanism is not
visible and hence called transparent. Further this works only when the
client behind the NAT is a road warrior.


vinay