Networking Forums

Networking Forums > Computer Networking > Linux Networking > Multiple web servers behind iptables

Reply
Thread Tools Display Modes

Multiple web servers behind iptables

 
 
gaur_ms@yahoo.co.in
Guest
Posts: n/a

 
      10-26-2005, 05:00 PM
Hi,
I have one web server (www.x.y.z) behind a firewall iptables on Red Hat
Linux. Presently the firewall is configured s.t. all the http request
coming to single external IP (of iptables) is redirected to the
internal IP (172.16.1.10:80).
Now we would like to create another web server (intra.x.y.z). Necessary
entries have been made in our DNS through CNAME and zone entries (I can
successfully dig this web server also) and within the LAN behind the
firewall we can see this web server (172.16.1.14:80). I have made
similar port forwarding entries for intra.x.y.z (as a link within the
www.x.y.z site) but when the site is viewd from internet it always gets
only www.x.y.z !!
How can we make this additional web server visible from the internet?
Many thanks in advance
Karmath

 
Reply With Quote
 
 
 
 
gaur_ms@yahoo.co.in
Guest
Posts: n/a

 
      10-26-2005, 05:14 PM
Just an addition to the above situation. Just tried to ping intra.x.y.z
from outside internet, surprisingly it tired to ping an "internal
address: 172.16.1.14" which is certainly not correct as this IP is not
routable. What can be wrong with my configuration??

(E-Mail Removed) wrote:
> Hi,
> I have one web server (www.x.y.z) behind a firewall iptables on Red Hat
> Linux. Presently the firewall is configured s.t. all the http request
> coming to single external IP (of iptables) is redirected to the
> internal IP (172.16.1.10:80).
> Now we would like to create another web server (intra.x.y.z). Necessary
> entries have been made in our DNS through CNAME and zone entries (I can
> successfully dig this web server also) and within the LAN behind the
> firewall we can see this web server (172.16.1.14:80). I have made
> similar port forwarding entries for intra.x.y.z (as a link within the
> www.x.y.z site) but when the site is viewd from internet it always gets
> only www.x.y.z !!
> How can we make this additional web server visible from the internet?
> Many thanks in advance
> Karmath


 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      10-26-2005, 07:59 PM
(E-Mail Removed) wrote:
> Hi,
> I have one web server (www.x.y.z) behind a firewall iptables on Red Hat
> Linux. Presently the firewall is configured s.t. all the http request
> coming to single external IP (of iptables) is redirected to the
> internal IP (172.16.1.10:80).
> Now we would like to create another web server (intra.x.y.z). Necessary
> entries have been made in our DNS through CNAME and zone entries (I can
> successfully dig this web server also) and within the LAN behind the
> firewall we can see this web server (172.16.1.14:80). I have made
> similar port forwarding entries for intra.x.y.z (as a link within the
> www.x.y.z site) but when the site is viewd from internet it always gets
> only www.x.y.z !!
> How can we make this additional web server visible from the internet?


You have to keep the servers in a single
host - it's not possible to forward port
80 to several internal hosts at the same time.

If your server is Apache, learn to
use its virtual host feature. It
can separate the different target
names with identical IPort addresses.

--

Tauno Voipio
tauno voipio (at) iki fi
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple udp servers on one IP? Radioman Windows Networking 9 10-12-2007 12:00 PM
multiple VNC servers behind ICS Ogg Windows Networking 0 10-11-2006 02:40 AM
Reverse proxy to multiple origin servers on multiple ports John Beadles Linux Networking 1 06-17-2004 10:28 AM
Reverse proxy to multiple origin servers on multiple ports John Beadles Linux Networking 0 06-16-2004 09:23 PM
Where to put my multiple servers????? =?Utf-8?B?Sm9lIEsu?= Windows Networking 15 05-05-2004 01:27 PM



1 2 3 4 5 6 7 8 9 10 11