Subject: Re: Help with IPsec over NAT
To: Richard M Kreuter <kreuter@progn.net>
From: John R. Shannon <john@johnrshannon.com>
List: netbsd-help
Date: 04/20/2005 11:13:42
--nextPart26529232.d5FaXS24k7
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Briefly, yes. I use IPSEC to connect home from hotels using NAT regularly o=
n=20
business trips. Often, I must go through more than one layer of NAT.
On Wednesday 20 April 2005 10:52 am, you wrote:
> Howdy NetBSD people,
>
> My home box serves a number of functions for me (IMAP, SMTP, file
> service, etc.), and I'd like to be able to reach these services from
> my laptop while I'm on the road. Configuring firewall holes, access
> controls and encryption for each service individually looks to be an
> unscalable mess, and so I think I'd like to try encrypting all traffic
> between my laptop and my home box's public IP address with IPsec while
> I'm away from home. I think I understand the basics of how IPsec is
> to be set up (at least I think I understand the contents of the NetBSD
> IPsec FAQ). My problem is that normally my laptop is behind a NAT
> layer that I have no control over while I'm away from home, and so I
> believe I need to use some kind of IP-over-IP tunnelling between the
> laptop and the home box. So my questions are these:
>
> (1) Can typical NAT devices pass the encapsulating packets through?
Yes.
> (2) If so, how does one set up a tunnel between a box on some private
> address space (e.g., 192.168.x.x), through the NAT device to some
> address in the public IP space, without touching the NAT box's
> routing? I can't tell the differences, for example, between gif
> and gre, but I also can't figure out how to set up a tunnel
> through a NAT device with either of them.
gif works well. If it's still there, FreeBSD has a HOWTO on setting this up.
> (3) If I'm wrong about needing some kind of IP-over-IP tunnelling, is
> there some way to use IPsec through NAT with ipv4?
I actually use NAT-T (running OpenBSD on a Soekris box/IPSEC gateway).
=2D-=20
John R. Shannon, CISSP
Sr. Software Scientist
Science Applications International Corporation
john.r.shannon@saic.com
john.r.shannon@us.army.mil
john@johnrshannon.com
--nextPart26529232.d5FaXS24k7
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Disposition: attachment; filename="smime.p7s"
Content-Transfer-Encoding: base64
MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrD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