Subject: Re: Advanced Routing
To: Diego Linke - GAMK <linke@calnet.com.br>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 03/24/2002 18:49:31
On Sat, Mar 23, 2002 at 06:12:45PM -0300, Diego Linke - GAMK wrote:
> Hi
> 
> See below:
> 
> My objective is, the machine 192.168.0.11 out via ADSL, and other machines (192.168.0.X) out via link.
> 
> My interfaces address:
> xl0 - 200.200.200.5  (Link Router 200.200.200.1)
> xl1 - 192.168.0.1
> xl2 - 192.168.200.8  (ADSL Router 192.168.200.254)
> 
> Default gateway is 200.200.200.1 (link)
> 
> ipnat.conf:
> map xl2 192.168.0.11/32 -> 192.168.200.8/32
> map xl0 192.168.0.0/24 -> 200.200.200.5/32
> 
> ipf.conf:
> pass out quick on xl0 to xl2:192.168.200.254 from 192.168.0.11/32 to any

Maybe try
pass in quick on xl1 to xl2:192.168.200.254 from 192.168.0.11/32 to any

> 
> The problem is the machine 192.168.0.11 the conection Time out... (not conection to internet via ADSL).
> 
> Do you have any idea ?

Did you try a tcpdump on xl0 and xl2 to see what happens to the packet ?

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