Subject: IPNAT Questions
To: None <>
From: J. Buck Caldwell <>
List: netbsd-users
Date: 03/16/2000 15:11:35
So the IPNAT FAQ is showing up as lost on the NetBSD page, of course,
just when I decide to set up NAT. I'm trying to set up a NAT server in
the following environment, and would appreciate any help possible.

NAT server is a i386 (most recent snapshot) box with ex0 on the Internet
and ex1 on the private network. ex0 is bound to, and
expects to route to a DSL modem at (mask
ex1 is bound at (currently) (possibly moving to when going live). Also, there is a Cisco router sitting at that's routing several other networks (192.168.x.0/24,
where x is the site ID) over Frame Relay. Each of those sites also needs
access across this NAT server.

So far, I've got:

block in all
pass in all

map ex1 -> portmap tcp/udp 20000:30000

Nothing works, however. I can ping the internal side, but nothing on the
external, no web traffic, nothing seems to pass. I've also tried
enabling net.inet.ip.forwarding, but that doesn't seem to do it. It does
allow me to ping the public side, but that's not meaningful.

Last note - I'm running routed so the server exchanges RIP info with the
Cisco. Interesting side note - routed doesn't seem to load
automatically, even if it's set YES in rc.conf. Working on that.

Any help at all would be most appreciative.