Subject: Re: VPN setup
To: Alan Post <apost@recalcitrant.org>
From: Andrew Gillham <gillham@vaultron.com>
List: netbsd-help
Date: 05/09/2003 16:05:21
On Fri, May 09, 2003 at 10:28:23PM +0000, Alan Post wrote:
> In article <Law10-F714H02WhknnI00007729@hotmail.com>, Carlo Smith wrote:
> > Hi,
> > 
> > Im running a NetBSD firewall with NAT.
> > 
> > Now I want to setup a VPN from my PC to my company through my firewall but 
> > this fails, probably because I use NAT ...
> > 
> > Are there any options to get arround this ??
> 
> Some companies also set up public SSH servers; these are much easier
> to use than VPN stuff.  For connecting to a MicroSoft Windows machine
> inside the company, rdesktop over an ssh tunnel works like a charm.

This should be enough in /etc/ipnat.conf:
map xyz0 192.168.1.0/24 -> 0/32 proxy port isakmp ipsec/udp

Where xyz0 is your outside ethernet, and 192.168.1.0/24 is your inside
subnet.

-Andrew