Web Server in a Firewall

Oommen Thomas (oommen@imaginetechnologies.com)
Wed, 29 Dec 1999 17:30:13 -0500 (EST)


Hi all,

I have a problem in setting up a web server within a firewall.
The setup is as follows.
a) There is a webserver(1) with an Internet IP and there are links to
pages on the Internal webserver(2)
b) We added the following on the firewall -
ipmasqadm portfw -a -P tcp -L Firewall-IP 9000 -R 172.16.100.2 80
c) Then the webpage on (1) refers to http://firewall:9000 and goes to
172.16.100.2 correctly.

But the problem is that when this local page refers to another (local)
page, it prefixes the Apache servername which does not have a valid dns
entry and hence fails to resolve from Internet.

Obviously, the same problem will occur even if I directly access
http://firewall:9000.

I know that if we specify http://firewall:9000/ in all the URLs on the
local machine, it will work. But what we need is that the internal
server(2) must work from inside over the LAN as well as using the firewall
thru the Internet.

All this, using ipchains/ipmasqadm and not any proxy like TIS FWTK.

I know this is possible, but how?

TIA

Oommen

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu