Solved

Port forwarding on 80 from 1 WAN address to 2 internal LAN addresses

Posted on 2013-02-05
3
678 Views
Last Modified: 2013-02-08
Hi all,


I have test1.mycompany.co.uk and test2.mycompany.co.uk which both point to my WAN IP address 84.65.212.22.

I have setup port forwarding on 80 which can go to either  to internal Servers: Server 1 /192.168.2.11 or Server2/  192.168.2.12

On the router I can only open port 80 for either Server1 or Server2.

What options are available to get around this, without getting another WAN IP address?

Basically I want it setup so out on the internet if I went to:

test1.mycompany.co.uk it would take me to internal Server1

test2.mycompany.co.uk it would take me to internal Server2

Thanks
0
Comment
Question by:unrealone1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 14

Expert Comment

by:Ben Hart
ID: 38855661
If the server has multiple nic's then you could bind each webpage to a different nic.  Then you'll still need to use a different port for one of the sites.
0
 
LVL 9

Accepted Solution

by:
tsaico earned 500 total points
ID: 38856026
Can't be done, as soon as the request comes in and finds a match in the firewall, it drops out of the logic and heads to the first forward.  What you need to do is set up IIS to look for host information on the webpages, then you can use the same server for both sites.  For shared hosting on IIS servers, this is how the sites are created despite having the same external IP address and running on the same ports.

Right click on the site in IIS manager, edit site binding, then fill out the host name sections with your website's name.

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b77cf015-017f-489c-9b5b-65ca4a679392.mspx?mfr=true

you can see there are three peices of information that can separate the sites, any one of the three can be done, but the IP address needs to have it's separate WAN address.
http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b77cf015-017f-489c-9b5b-65ca4a679392.mspx?mfr=true  (this is 2k3, but the concept is the same)

header names is the easiest way to host multiple sites, in IIS in my opinion.
http://www.youtube.com/watch?v=ol49-i6-y0A in case you would rather watch than read...
0
 
LVL 1

Author Closing Comment

by:unrealone1
ID: 38869074
Many Thanks - very helpful
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question