Greetings,
I am trying to configure a web server behind a router/firewall.
Consider the network diagrammed below:
(INTERNET)
|
|
|
(ROUTER – PUBLIC_IP)
|
|
|
------------------
| |
| |
| |
(90.0.0.17) (90.0.0.1)
( Client ) (Web Server)
ROUTER is a RedHat 7.3 system (IPTABLES) with static IP Number
PUBLIC_IP, which is also mapped via DNS as
www.foo.com. ROUTER is
configured to perform NAT for the machines on the private subnet
(90.0.0.0/24). ROUTER is also configured to pass HTTP requests from
the net to the local machine 90.0.0.1. Hence, someone on the net
going to
http://www.foo.com will hit the web server on 90.0.0.1. This
all works well.
However, I would like to allow all the machines on the local subnet
(e.g., 90.0.0.17) to also access the web server via
http://www.foo.com. Is this possible? If so, should this be
configured via the routing tables, or via iptables, or some other way?
What is the proper configuration?
Many thanks for any help or insight!