Subject: Re: IPNAT AGAIN PLEASE
To: Manuel Bouyer <port-i386@netbsd.org>
From: Amir Nazary <anazary@imagepower.com>
List: port-i386
Date: 07/05/1999 14:09:36
Thanks to Manuel, everything works like a charm now.

----- Original Message -----
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
To: Amir Nazary <anazary@imagepower.com>
Cc: <port-i386@netbsd.org>
Sent: Monday, July 05, 1999 12:39 PM
Subject: Re: IPNAT AGAIN PLEASE


> On Mon, Jul 05, 1999 at 11:39:01AM -0700, Amir Nazary wrote:
> > I know we have all gone through this IPnat thing before, but I really
really
> > need to get it working.  I've got port redirect working (smtp and pop3
from
> > external interface coming into an internal mail server) but I can't get
> > packets to get routed out.  Here's my ipnat.conf:
> >
> > map ne3 192.168.0.0/255.255.255.0 -> XXX.XXX.XXX.XXX/32 portmap tcp/udp
> > 10000:40000
> > map ne3 192.168.0.0/255.255.255.0 -> XXX.XXX.XXX.XXX/32
> > rdr fxp0 0.0.0.0/0 port smtp -> 192.168.0.100 port smtp
> > rdr fxp0 0.0.0.0/0 port pop3 -> 192.168.0.100 port pop3
> >
> > (the XXX.XXX.XXX.XXX has been masked to protect the innocent.)
>
> fxp0 is your external interface, rigth ? I'd try changing ne3 to fxp0 ...
> (I don't have my working nat file handy but I think you have to specify
> the outgoing interface for a map rule, not the incoming one)
>
> --
> Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
> --