Subject: ipnat problem
To: None <current-users@NetBSD.ORG>
From: Scott Bartram <scottb@orionsoft.com>
List: current-users
Date: 10/15/1997 15:34:00
I'm trying to get ipnat running on a PPP router box using the i386
snapshot from 9/1. The internal addresses are not getting rewritten
on output. Does anyone know if ipnat was working in this snapshot?

Here is some relevant data:


Script started on Wed Oct 15 11:10:31 1997
router# ipnat -C
2 entries flushed from NAT list
router# cat ipnat.conf
map ppp0 192.168.1.0/24 -> 207.96.127.56/32 portmap tcp/udp 10000:65000
map ppp0 192.168.1.0/24 -> 207.96.127.56/32
router# ipnat -f ipnat.conf
router# ipnat -l
List of active MAP/Redirect filters:
map ppp0 192.168.1.0/24  -> 207.96.127.56/32  portmap tcp/udp 10000:65000
map ppp0 192.168.1.0/24  -> 207.96.127.56/32 

List of active sessions:
router# tcpdump -n -i ppp0
tcpdump: listening on ppp0
11:11:08.544745 192.168.1.191.1394 > 207.226.21.20.25: S 1670919855:1670919855(0) win 512 <mss 1460>
11:11:11.538987 192.168.1.191.1394 > 207.226.21.20.25: S 1670919855:1670919855(0) win 31744 <mss 1460>
^C
2 packets received by filter
0 packets dropped by kernel
router# ipnat -l
List of active MAP/Redirect filters:
map ppp0 192.168.1.0/24  -> 207.96.127.56/32  portmap tcp/udp 10000:65000
map ppp0 192.168.1.0/24  -> 207.96.127.56/32 

List of active sessions:
router# ifconfig -a
ed0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	address: 48:54:00:00:33:31
	inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255
lo0: flags=8009<UP,LOOPBACK,MULTICAST> mtu 32976
	inet 127.0.0.1 netmask 0xff000000 
ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1006
	inet 207.96.127.56 --> 10.65.33.24 netmask 0xffffff00 
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
tun0: flags=10<POINTOPOINT> mtu 1500
tun1: flags=10<POINTOPOINT> mtu 1500
router# exit

Script done on Wed Oct 15 11:11:32 1997