Subject: ipnat, rdr and http
To: None <port-mac68k@netbsd.org>
From: Rob Jennings <rcjennings@shaw.ca>
List: port-mac68k
Date: 12/06/2002 21:26:31
I have a mac68k machine running NetBSD 1.6. My external interface ae0
is configured by dhclient. ae1 and ae2 are internal interfaces
configured as 192.168.0.1 and 192.168.1.1 respectively. ipnat.conf is
as follows:
map ae0 192.168.0.0/16 -> 0/32 proxy port ftp ftp/tcp
map ae0 192.168.0.0/16 -> 0/32 portmap tcp/udp 40000:60000
map ae0 192.168.0.0/16 -> 0/32
Everything works great.
I'm running Apache on another machine configured as 192.168.0.2. I'd
like to redirect http requests to the machine running ipnat to the Web
server at 192.168.0.2. I've read over documentation and searched the
mailing list. Based on this research, I added the following line to
ipnat.conf:
rdr ae0 0/0 port 80 -> 192.168.0.2 port 80 tcp
Unfortunately, any http request to the mac68k machine returns
"connection refused" or "page cannot be displayed" depending on the Web
browser. Internal http requests direct to the machine running Apache
connect successfully.
Have I correctly configured ipnat for this purpose? Is there anything
else I need to do?
Thanks in advance,
Rob
~
Even if one were skilled enough to play to the apple, one would have
only seconds left to diagnose the circuit before being eaten, "with a
joystick in one hand and a logic probe in the other."