Subject: please help to config IPNAT
To: None <current-users@netbsd.org>
From: Chan Yiu Wah <c5666305@hkstar.com>
List: current-users
Date: 07/02/1999 22:50:43
Hello,
I had problem in configuring the IPNAT to work. I follow the steps to
setup the IPNAT and could not make it work.
1. I test the LAN is ok as I can ping the gateway (dialup line to ISP).
2. I ping other host in the internet without any messages back except the
ip address of it.
Anyone can help ? Here is the setting of my system for the IPNAT. My system
is netbsd-current (jun 30, 1999)
Clarence
======= ipnat.conf =======
map ppp0 158.132.8.97/24 -> 0.0.0.0/32 portmap tcp/udp 10000:40000
======= ipnat.conf =======
======= rc.conf =======
# Networking startup
ipfilter=YES # uses /etc/ipf.conf
ipnat=YES # uses /etc/ipnat.conf
ipmon=YES ipmon_flags="-sn" # syslog ipfilter messages
auto_ifconfig=YES # config all avail. interfaces
net_interfaces="" # used only if above is NO
flushroutes=YES # flush routes in netstart
dhclient=NO # behave as a DHCP client
dhclient_flags="" # blank: config all interfaces
ntpdate=NO ntpdate_hosts="" # blank: hosts in /etc/ntp.conf
ppp_peers="" # /etc/ppp/peers to call
======= rc.conf =======
======= resolv.conf =======
dimainname xxx.xxx
nameserver xxx.xxx.xxx.xxx
lookup file bind
======= resolv.conf =======
======= netstat -i =======
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls
ne1 1500 <Link> 00:00:e8:c3:93:4b 950 0 253 0 0
ne1 1500 158.132.8/24 pc97.comp.polyu.e 950 0 253 0 0
lo0 32976 <Link> 208 0 208 0 0
lo0 32976 loopback localhost 208 0 208 0 0
ppp0 1524 <Link> 417 0 770 0 0
ppp0 1524 168.70 wtsam044060.netvi 417 0 770 0 0
ppp1* 1500 <Link> 0 0 0 0 0
sl0* 296 <Link> 0 0 0 0 0
sl1* 296 <Link> 0 0 0 0 0
strip 1100 <Link> 0 0 0 0 0
strip 1100 <Link> 0 0 0 0 0
tun0* 1500 <Link> 0 0 0 0 0
tun1* 1500 <Link> 0 0 0 0 0
gre0* 1450 <Link> 0 0 0 0 0
gre1* 1450 <Link> 0 0 0 0 0
ipip0 0 <Link> 0 0 0 0 0
ipip1 0 <Link> 0 0 0 0 0
eon0 1500 <Link> 0 0 0 0 0
======= netstat -i =======