Subject: Re: help: default route not working on gateway??
To: Dustin Hoff <dustin+netbsd@dustinhoff.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-users
Date: 09/07/2004 20:08:05
On Tue, Sep 07, 2004 at 11:32:13AM -0400, Dustin Hoff wrote:
> Hi, 
> I have 1.6.2 installed on a Sun Ultra 1 and it's configured with
> ipfilter/ipnat to NAT an internal network on one interface (hme1)
> to the Internet on another interface (hme0).  dhclient sets the IP
> address, nameservers, default route, etc on the public interface
> and I can access the Internet from my internal systems, but I get
> "no route to host" for every public address that I try to reach
> from the gateway itself.
> 
> My /etc/ipnat.conf file has the following:
> map hme0 192.168.4.0/24 -> 0/32 portmap tcp/udp 10000:40000
> map hme0 192.168.4.0/24 -> 0/32 proxy port ftp ftp/tcp
>  
> and I have these routes:
> Destination        Gateway            Flags     Refs     Use    Mtu  Interface
> default              xxx.yyy.zzz.129    UGS         1  1519069      -  hme0
> xxx.yyy.zzz.128/25   link#2             UC          1        0      -  hme0
> xxx.yyy.zzz.129      00:01:02:03:04:05  UHLc        1        5      -  hme0
> xxx.yyy.zzz.230      127.0.0.1          UGHS        0        3  33184  lo0
> 192.168.4            link#3             UC          3        0      -  hme1
>  
> hme1 is 192.168.4.1 netmask 255.255.255.0.

Can you at last ping xxx.yyy.zzz.129 and xxx.yyy.zzz.230 from the ultra ?

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--