All of lore.kernel.org
 help / color / mirror / Atom feed
From: "MrBiTs" <mrbits@terra.com.br>
To: lartc@vger.kernel.org
Subject: [LARTC] Routing two web sites in the same machine
Date: Thu, 27 Mar 2003 18:54:13 +0000	[thread overview]
Message-ID: <marc-lartc-104879149102261@msgid-missing> (raw)

[-- Attachment #1: Type: text/plain, Size: 1962 bytes --]

Hi, Bert, Hi All
 
I finished the reading of you Linux Advanced Routing  & Traffic Control
HOWTO... Congratulations for the excelent job ! You HOWTO helped me to
implement my firewall and NAT/Routing. 
 
Could you please help me in a little doubt that I can't figure ?
 
I have just one C IP: 200.189.73.130
 
This IP answers for two hosts:  <http://www.realad.com.br/>
www.realad.com.br and  <http://www.realmedia.com.br/>
www.realmedia.com.br
 
In the begining, there was a Windows 2000 machine answering for these
hosts. Today I have ( finaly ) a Linux RH 7.3 Box :)
 
The problem is: I can't use Apache in the Linux box as web server
because of some .asp applications we have here. So, I did a routing from
the linux box to the Windows 2000 box, answering for my internal B IP's:
192.168.0.1 is the linux box.  <http://www.realad.com.br/>
www.realad.com.br has 192.168.0.2 as IP in IIS and
<http://www.realmedia.com.br/> www.realmedia.com.br has 192.168.0.5 as
ip in IIS. 
 
I did the following to route packages that comes from internet to port
80 in the Linux box to port 80 in the internal W2K box:
 
iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT
--to-destination 192.168.0.2:80
 
and, for internal routing: 
 
iptables -t nat -A PREROUTING -p tcp -d 200.189.73.130 --dport 80 -j
DNAT --to 192.168.0.2:80
 
 <http://www.realad.com.br/> www.realad.com.br and
<http://www.realmedia.com.br/> www.realmedia.com.br have different
contents. My problem is... How I can route packages that come to
<http://www.realad.com.br/> www.realad.com.br to 192.168.0.2 and
<http://www.realmedia.com.br/> www.realmedia.com.br to 192.168.0.5. Just
remembering, 192.168.0.2 and 192.168.0.5 are IP from the same IIS
machine.
 
 
Can anybody help me ???
 
Thanks a lot
 

Diogo Carlos Fernandes
Technical Support Manager

Real Media Latin America 
www.realmedia.com 

Phone .: 55+11+3842-2166 
Mobile .: 55+11+9266-5325 
e-mail .: dfernandes@realmedia.com 

 

[-- Attachment #2: Type: text/html, Size: 5458 bytes --]

                 reply	other threads:[~2003-03-27 18:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-lartc-104879149102261@msgid-missing \
    --to=mrbits@terra.com.br \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.