All of lore.kernel.org
 help / color / mirror / Atom feed
From: "John A. Sullivan III" <jsullivan@opensourcedevelopmentcorp.com>
To: Alexandros Papadopoulos <apapadop@alumni.carnegiemellon.edu>
Cc: netfilter@lists.netfilter.org
Subject: Re: VPN over netfilter NAT
Date: Thu, 16 Sep 2004 07:49:05 -0400	[thread overview]
Message-ID: <1095335345.2065.18.camel@localhost> (raw)
In-Reply-To: <200409161436.26695.apapadop@alumni.carnegiemellon.edu>

On Thu, 2004-09-16 at 07:36, Alexandros Papadopoulos wrote:
> I stumbled across 
> http://www.linuxhomenetworking.com/linux-adv/vpn-linux.htm today, which 
> states that "NAT breaks VPNs".
> 
> Is this just an over-simplifying statement that really means "if you're 
> reading this, then don't even try setting up a NAT-traversing VPN"?
> 
> This is exactly what I'm planning to do; I've got my mind set on having 
> the two VPN endpoints inside two NATed networks, both managed by 
> respective dedicated linux boxes running only netfilter.
> 
> If that is indeed possible (and doable for a first timer), could anyone 
> provide some relevant pointers to documentation?
> 
> Cheers
> 
> -A
There is quite a bit of (somewhat dated) information about using these
technologies together in the training section at
http://iscs.sourceforge.net 

One can use IPSec and NAT but with some caveats.  The simplest way is if
you can arrange for a one-to-one NAT so that the public address is fixed
and unique.

If you must do NAPT, i.e., many-to-one - port address translation, then
you can use NAT Traversal.  However, this will work for outbound
initiated connections only.  The initiating point needs to find the
other end point.  So, for example, one can use NAT-T for ones mobile
users but it would be near impossible to do so for the gateway to which
they connect.  I have never tried port-mapping a VPN gateway and have no
idea if that would work.

Good luck with it - John
-- 
John A. Sullivan III
Open Source Development Corporation
Financially sustainable open source development
http://www.opensourcedevel.com



  parent reply	other threads:[~2004-09-16 11:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-16 11:36 VPN over netfilter NAT Alexandros Papadopoulos
2004-09-16 11:47 ` Brent Clark
2004-09-16 11:49 ` John A. Sullivan III [this message]
2004-09-16 12:00 ` OFFTOPIC: " Leonardo Rodrigues Magalhães
2004-09-16 12:30 ` Jason Opperisano
2004-09-16 14:36 ` Aleksandar Milivojevic
2004-09-16 17:11   ` Les Mikesell
2004-09-17  1:36 ` Kenneth Porter
2004-11-12 13:09 ` Peter Marshall
2004-11-12 13:54   ` Michel van der Klei

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=1095335345.2065.18.camel@localhost \
    --to=jsullivan@opensourcedevelopmentcorp.com \
    --cc=apapadop@alumni.carnegiemellon.edu \
    --cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.