Subject: problems running IPNAT
To: None <netbsd-help@NetBSD.ORG>
From: Stefan Brandle <Stefan.Brandle@wheaton.edu>
List: netbsd-help
Date: 07/18/1997 13:59:47
Howdi. I'm trying to get ipnat running and am not having tons of luck.
I'm trying to map a 10.0.1.0/24 to a class C network that we have. I would
really like to do bidirectional static mapping (inside-net.X -> outside-net.X
and visa versa).

Here's my config file (I'm just trying to get anything going here!):

    #  cat ipnat.conf
    map ep0 10.0.1.0/24 -> 207.58.80.0/24

And here's me trying to start ipnat:

    # ipnat -v -f ipnat.conf
    map ep0 10.0.1.0/24  -> 207.58.80.0/255.255.255.0
            0 0 0.0.0.0 0 0
    ioctl(SIOCADNAT): Invalid argument

I've read the documentation [ipnat(1), ipnat(4), ipnat(5) ] a number of times
but remain confused.

Here's potentially useful supporting info:

uname version report: NetBSD X.wheaton.edu 1.2E NetBSD 1.2E. However, the
source tree it lists includes /var/src/NetBSD-1.2D/src, which indicates that
I am accidentally running a 1.2D kernel.

Is the version mismatch my problem?

Is there some better documentation on ipnat? For instance, the
    mapit :: = "map" | "rdr"
line in ipnat(5) makes me wonder what the "rdr" means. As far as I can see,
the documentation doesn't explain what "rdr" does.

The documentation SEE ALSO part keeps mentioning ipf(1), but I'm not sure why.
I though that ipnat might piggy back off an active filter, so I activated a
minimal filter to forward between two ethernet interfaces. Is ipf(1) relevant?

Thanks for any help you might have.

-- sb
===============================================================================
Stefan Brandle  |  (630) 752-5201  |  stefan@wheaton.edu  |  Wheaton College IL
===============================================================================