Subject: IPNAT Questions
To: None <email@example.com>
From: J. Buck Caldwell <firstname.lastname@example.org>
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 22.214.171.124, and
expects to route to a DSL modem at 126.96.36.199 (mask 255.255.255.248).
ex1 is bound at (currently) 192.168.0.251 (possibly moving to
192.168.0.1 when going live). Also, there is a Cisco router sitting at
192.168.0.250 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 192.168.0.0/16 -> 188.8.131.52/32 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.