Networking Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationNetworking Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old July 16th, 2004, 11:28 AM
Nodine Nodine is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 18 Nodine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Post domain based forwarding

I have an ineternet conncetion coming into a firewall on interface 0 (eth0) of my linux box. The 'Internet' link is on eth0, so to speak. On eth1 of my firewall, i have a swith that connnects to my internal netwrk. I am trying to host 4 registered domains from a combination of 2 boxes on my local network.
To do this, I DNAT (port forward) tcp traffic to 192.168.2.111, which is of the webservers. When I do this, howevver, that other webserver never sees the request that it should respond to. So how do I configure my firewall to send www.abc.com requests to 192.168.2.10 and www.xyz.com requests to 192.168.2.222? I am using Shorewall version 2.0 for the forwarding..
Think you is advance for the help,

nodine at purdue.edu

Reply With Quote
  #2  
Old July 16th, 2004, 11:33 AM
billthehamster billthehamster is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 7 billthehamster User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It sounds like you need to setup a virual server for each of the sites, I assume you are running apache webserver if you look in the config file you will find info on how to do this.

Reply With Quote
  #3  
Old July 16th, 2004, 12:23 PM
Nodine Nodine is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 18 Nodine User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation not an apache issue

i have an apache box and a msft iis box, and both correctly resolve requests that are sent to them. the problem is that traffic for siteA and siteB must be sent to internal ip 192.168.2.10, while traffic for siteC and siteD must be sent to internal ip 192.168.2.11.

Reply With Quote
  #4  
Old July 17th, 2004, 10:29 AM
juniperr juniperr is offline
network dude
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Dec 2003
Posts: 1,679 juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level)juniperr User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 21 h 55 m 2 sec
Reputation Power: 85
basicly what you are doing is forwarding port 80 traffic to another IP address, the only way Im aware of to forward to two different servers is to have another one listen on a different port or get a second IP address to port forward, other wise put both web servers on the same physical server ( ie virtual servers) and depending on your web server enable host header, which will look into the http request header and see www.xyz.com or www.abc.com and direct it to the correct virtual server even though they are on the same IP address.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationNetworking Help > domain based forwarding


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway