Subject: ipnat help request
To: None <current-users@NetBSD.ORG>
From: John C. Hayward <>
List: current-users
Date: 10/20/1997 15:00:30
Dear NetBSDers,
   I am attempting to get ipnat working to allow machines on my local lan
to be able to access the internet via my internet connection.  

   When I attempt to telnet from a local machine it appears that packets
are comming in the local interface and going out the internet interface
without any rewriting (and as such the remote computer does not have the
routing computers IP). 

   Can anybody see what I have wrong in my set up?

 ed0 is the internet interface and ed2 is the local interface - I think I
 want packets when written out on the ed0 interface to have their source
 address changed to the routing machine.
   Any pointers would be appreciated.  TIA

Here is my
hw/os i386 - NetBSD 1.2G

forwarding flag, ifconfig output, ls /dev/ipl and ipnat listing:
adsl-204-146-211-159# sysctl net.inet.ip.forwarding
net.inet.ip.forwarding = 1

adsl-204-146-211-159# ifconfig -a
mtu 1500
        address: 00:00:c0:72:02:e3
        inet netmask 0xffffffc0 broadcast
        address: 00:40:05:12:34:45
        inet netmask 0xff000000 broadcast
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32976
        inet netmask 0xff000000 
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500

adsl-204-146-211-159# ls -l /dev/ipl
crw-------  1 root  wheel   44,   0 Oct 19 21:16 /dev/ipl

adsl-204-146-211-159# ipnat -l
List of active MAP/Redirect filters:
map ed0  ->  portmap tcp/udp 1025:65000
map ed0  -> 

List of active sessions: