Subject: Re: Routing with NAT
To: Randy Beaudreault <maccult@pacbell.net>
From: Diego Linke - GAMK <linke@calnet.com.br>
List: netbsd-help
Date: 09/04/2002 08:02:20
Hi,

ipf not rules (pass all).

ipnat:

map sip0 192.168.0.0/24 -> 222.222.222.222/32
map sip1 192.168.1.0/24 -> 111.111.111.111/32

This problem is only work fine the network default gateway.
Example:

route add default 222.222.222.1      (default gateway de 222.222.222.222)

The NAT map sip0 192.168.0.0/24 -> 222.222.222.222/32 works fine, put other not.

Any idea ?

Thanks

-- 
Atenciosamente,
--
[ Diego Linke - GAMK ]
System/Network Administrator
Curitiba - Parana - Brazil
E-Mail: gamk@gamk.com.br
Web Site: http://www.gamk.com.br
Public Key: http://www.gamk.com.br/gamk.asc
Public Key (with photo_id): http://www.gamk.com.br/gamk_photo.asc
Phone Number: (+5541) 9967-3464

On Tue, Sep 03, 2002 at 01:56:58PM -0700, Randy Beaudreault wrote:
> >Hi,
> >
> >I have two NICs:
> >1) On sip0 222.222.222.222 (default gateway 222.222.222.1)
> >2) On sip1 111.111.111.111 (default gateway 111.111.111.1)
> >
> >And i have one LAN conection (sip2):
> >sip2 IP: 192.168.0.1
> >sip2 alias IP: 192.168.1.1
> >
> >I need of traffic 192.168.0.X out via NIC 1 (222.222.222.222 nexthop 
> >222.222.222.1) (NAT), and traffic 192.168.1.X out via NIC 2 
> >(111.111.111.111 nexthop 111.111.111.1) (NAT).
> >
> >The problem is, only NIC the default gateway works fine!
> >
> >Any idea ?
> >
> >Thanks
> 
> What are your ipf.conf and ipnat.conf?
> -- 
> Randy
> 
> OS X - UNIX for the rest of us
> NetBSD - Catch the Power!