Subject: ipnat help request
To: None <current-users@NetBSD.ORG>
From: John C. Hayward <John.C.Hayward@wheaton.edu>
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
johnh...

John.C.Hayward@wheaton.edu

Here is my
enviornment:
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
ed0: flags=9863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,LINK0,MULTICAST>
mtu 1500
        address: 00:00:c0:72:02:e3
        inet 204.146.211.159 netmask 0xffffffc0 broadcast 204.146.211.191
ed2: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu
1500
        address: 00:40:05:12:34:45
        inet 10.0.0.1 netmask 0xff000000 broadcast 10.255.255.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32976
        inet 127.0.0.1 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 10.0.0.0/8  -> 204.146.211.159/32  portmap tcp/udp 1025:65000
map ed0 10.0.0.0/8  -> 204.146.211.159/32 

List of active sessions:
==============