Subject: More docs on ipnat needed!
To: None <current-users@NetBSD.ORG>
From: Martin Husemann <martin@rumolt.teuto.de>
List: current-users
Date: 04/22/1997 09:22:46
Is there any more documentation beyound the (hmm, "tiny") man pages?

I tried using ipnat to hide a small internal network and can't get
it to work. Do I need to activate ipf with "ipf -E" to be able
to use ipnat?

I have one simple rule to test things:

map ppp0 192.168.112.2/32 -> 194.77.23.162/32

This should map one single host to its official ip number (ppp0 is the 
outgoing interface to my ISP). This doesn't work at all. ipnat -s shows
this rule, but never any active connections.

What I realy wanted to do is: map this numbers on any interface  (besides the
one to the internal network) I have on my outside router. So I tried:

map ppp0 192.168.112.2/32 -> 194.77.23.162/32
map ed0 192.168.112.2/32 -> 194.77.23.162/32
map ipi0 192.168.112.2/32 -> 194.77.23.162/32

This is not allowed. I tried it the other way round: map 194.77.23.162/32
to 192.168.112.2/32 on the interface to the internal network. This doesn't
work either (probably because 194.77.23.162 is within the subnet of the ed0
interface, and so the packets hit the ethernet with their original address
and not the NAT)

Any pointers to docs or hints realy appreciated...


Martin