Subject: Re: IP Masquerading with IPNAP
To: Peter Mancuso <unishell@hotmail.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 09/03/2001 23:01:41
On Tue, Aug 28, 2001 at 10:07:09PM -0400, Peter Mancuso wrote:
> Hi,
> 
> I am trying to set up IP Masquerading on a NetBSD box with IPNAT and cant 
> seem to get it to work!!
> 
> Here are my settings. Two NICs, one wired to the net through cable 
> modem(rtk0) and a the second NIC configured for my local network along with 
> my client PCs
> 
> here are my relavent configuration files
> 
> /etc/rc.conf
> ipfilter=YES
> ipnat=YES
> host="cr281793-b.wlfdle1.on.wave.home.com"
> auto_ifconfig=NO
> net_interfaces="rtk0 ne2"
> ifconfig_rtk0="inet 24.42.160.18 netmask 255.255.255.128"
> ifconfig_ne2="inet 192.168.1.1 netmask 255.255.255.0"
> defaultroute="24.42.160.1"  # Cable Connection Gateway
> 
> /etc/ipnat.conf
> map rtk0 192.168.1.1/24 -> 0/32 proxy port ftp ftp/tcp
> map rtk0 192.168.1.1/24 -> 0/32 portmap tcp/udp 40000:60000
> map rtk0 192.168.1.1/24 -> 0/32

Maybe 192.168.1.0/24 here ?
Shouln't make any difference though.

What does ipnat -l and ipnat -s show ?

--
Manuel Bouyer <bouyer@antioche.eu.org>
--