Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: linux-ipsec: IPSec & NAT

From: Henry Spencer <henry(at)spsystems.net>
Date: Sun Oct 11 1998 - 17:18:43 EDT


> ...Since my Windows box

This is the one place where you can actually usefully do NAT on IPSEC packets: where it's done only as a routing aid, on an ESP-only IPSEC connection. (AH will authenticate the addresses in the outer header as well, so you can't mess with them in that situation unless you unmess them before they hit AH at the other end.)

> Now, the problems with IPSec. The IP masquerading module only supports TCP

Correct. IPSEC encrypts/authenticates IP packets, and port numbers do not exist at the IP level. Any port numbers which might be found in inner headers -- for example, a TCP header -- are hidden inside the region which is encrypted/authenticated by IPSEC.

> ...apparently the remote access switch wouldn't respond to ISAKMP/Oakley

I forget whether this is a requirement... and the IKE documents are obscure enough that I'm not going to go wading through them right now to find out! In any case it's a sensible precaution.

> Anyway, it works. I looked at some debugging info, and although they

Note that "authentication" does not imply "AH" -- ESP does authentication too, and normally the sensible thing to do is to use ESP's auth and forget about AH entirely. (This untidy situation is a complex historical accident; it resulted partly from the discovery that ESP is vulnerable to certain kinds of attacks unless its packets are authenticated.)

Do you need help?X

> Now, the limitations. Because there is no "masqueraded port" used, there is

No. That's potentially sensitive information which is deliberately hidden. (There is some interest in having an *optional* way to label packets with unencrypted copies of such information, because IPSEC otherwise defeats a good many arguably-useful tricks done by things like routers, but it's not part of the protocols at this time.)

You've put your finger on the big limitation of a trick like this.

> I'd naturally be happy to share my hacked ip_masq.c code with anyone who's

Careful here. The US government has interpreted "enabling technology", e.g. sockets into which encryption code can be plugged, as being subject to the same sort of controls as encryption code. Masquerading mods for encryption probably qualify, unless, perhaps, they are general-purpose enough to have other uses as well.

                                                          Henry Spencer
                                                       henry@spsystems.net
                                                     (henry@zoo.toronto.edu)
Received on Sun Oct 11 18:15:00 1998

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 12:59:03 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library