Subject: Re: IP Nat
To: James l Vodanovich <jim@arrakis.com.au>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 06/20/1999 17:39:36
On Sun, Jun 20, 1999 at 11:50:45AM +1000, James l Vodanovich wrote:
> The gateway is i386 1.3.3
> 10.1.1.1 netmask 0xffff0000
> 
> My workstation is i386 1.4
> 10.1.1.2 netmask 0xffff0000
> 
> ipnat.conf is
> rdr ne2 10.1.1.2/32 port http ->   10.1.1.1 port http
> map ppp0 10.1.1.0/24 -> 0.0.0.0/32 portmap tcp/udp 10000:40000
> 
You have it backward then. The rdr line should be:
rdr ppp0 0.0.0.0/32 port http -> 10.1.1.2 port http.

This ask to redirect any packet received on the ppp0 interface for port
http to the 10.1.1.2 machine, port http. This is what you want, rigth ?

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--