Subject: kern/3435: NAT doesn't work
To: None <firstname.lastname@example.org>
From: Lennart Augustsson <email@example.com>
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 126.96.36.199 188.8.131.52
ipnat -f -
map tun0 184.108.40.206/32 -> 220.127.116.11/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 18.104.22.168 to 22.214.171.124 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 ...)