Subject: Re: Advanced Routing
To: None <netbsd-help@netbsd.org>
From: Diego Linke - GAMK <linke@calnet.com.br>
List: netbsd-help
Date: 03/19/2002 08:38:02
Hi

it's ok...

Put my problem is ipnat reading table routing... and send package in default gateway...

Thanks

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


On Tue, 19 Mar 2002 12:12:10 +0000
xs@kittenz.org wrote:

> on Mon, Mar 18, 2002 at 04:03:45PM -0300, Diego Linke - GAMK wrote:
> > It has 3 networks cards, one to the internal network (192.168.0.X) , another
> > to an ADSL router and the third to a leased line Internet link (NIC).
> > 
> > I need to NAT the internal network, being able to choose which IPs go
> > "nated" for the ADSL or for the leased line. The company's Directors already
> > asked me to return to Linux, since it has "ip advanced routing". I'm struggling
> > to mantain BSD on our servers, and I cannot believe it's not possible to
> > perform this function under this so advanced system.
> 
> If my reading of the ipnat.conf(5) manpage is right, this is what you want?
> (ne0 = adsl interface, ne1 = leased line, ne2 = internal)
> 
> map ne1 from 192.168.0.0/24 to 123.123.123.123/32 -> 12.12.12.0/24 portmap tcp/udp 1025:65000
> map ne1 from 192.168.0.0/24 to 123.123.123.123/32 -> 12.12.12.0/24
> map ne0 from 192.168.0.0/24 -> 12.12.12.0/24 portmap tcp/udp 1025:65000
> map ne0 from 192.168.0.0/24 -> 12.12.12.0/24
> 
> and in ipf.conf(5):
> block in on ne2 to ne1 from 192.168.0.0/24 to 123.123.123.123/32
> 
> (This is just a guess.)
> http://www.obfuscation.org/ipf/ipf-howto.txt might be of use.