Subject: Re: Problems with ipf :)
To: Simas Mockevicius <symka@vejas.lt>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 03/09/2001 20:36:06
On Fri, Mar 09, 2001 at 10:00:24AM +0200, Simas Mockevicius wrote:
> Hi, 
> 
> I have falowing situation:
> 
> One server (firewall) based on NetBSD 1.5 (ipf + nat), I have 2 real IP adresses,
> one I gave to server, other I need to attach to computer who is behind firewall...
> 
> If you know what I mean :)
> 
> Explaining: I need to set real IP address to computer which is inside my local
> network, I know how to do it with iptables (Linux), but with ipf and nat.... I
> readed all (I think :) networking manuals about ipf and did'nt find any examples
> for my case...
> 
> If anyone know, please... I need to resolve this problem as soon as posible...

Add you second IP address as interface alias on the NAT box,
and use the "bimap" keyword in NAT to redirect traffic for this IP to
the internal machine.

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