Subject: help: default route not working on gateway??
To: None <netbsd-users@netbsd.org>
From: Dustin Hoff <dustin+netbsd@dustinhoff.com>
List: netbsd-users
Date: 09/07/2004 11:32:13
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.
 
I'm at a loss for why the system can route from one net to another
but not locally, but maybe there is a simple solution.  Thanks for
any advice.
 
Dustin