Subject: kern/3435: NAT doesn't work
To: None <email@example.com>
From: Lennart Augustsson <firstname.lastname@example.org>
Date: 04/02/1997 00:03:28
>Synopsis: NAT doesn't work
>Responsible: kern-bug-people (Kernel Bug People)
>Arrival-Date: Tue Apr 1 14:05:01 1997
>Originator: Lennart Augustsson
Department of Computing Science, Chalmers University
>Release: NetBSD-current 970401
System: NetBSD calvin 1.2D NetBSD 1.2D (CALVIN) #156: Tue Apr 1 01:34:57 MEST 1997 augustss@calvin:/usr/src/sys/arch/i386/compile/CALVIN i386
The NAT (Network Address Translation) of the IP filter package
does not work anymore.
Run the following on a system from BEFORE the new IPF
package was imported:
ifconfig tun0 188.8.131.52 184.108.40.206
ipnat -f -
map tun0 220.127.116.11/32 -> 18.104.22.168/32
where dump-tunnel is a simple program that opens tun0 and dumps
the source address of the packets. The output from dump-tunnel
in this case will be
i.e. the source address got mapped from 22.214.171.124 to 126.96.36.199 just
as the NAT translation prescribed.
Now run the same thing on -current and the output will be
i.e. the source address remains unchanged.
I don't know. I was hoping someone more knowledgable about
the filter package could find it quicker than I could.
(Hint, hint ...)