Subject: Re: Routing with NAT
To: Diego Linke - GAMK <linke@calnet.com.br>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 09/03/2002 21:16:19
On Tue, Sep 03, 2002 at 09:34:23AM -0300, Diego Linke - GAMK 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 ?
The 'to' keyword of ipf.conf may be what's you're looking for ...
--
Manuel Bouyer <bouyer@antioche.eu.org>
--