1

I have two servers on my network both are running Windows server 2008 r2 and both are using IIS 7.

I currently have the subdomain mail.example.com pointing to our external IP (170.1.1.1) and then ports 80 and 443 forwarded to the exchange mail server (192.168.0.1) I would like to have web.example.com pointing to the same external IP (170.1.1.1) but have ports 80 and 443 forwarded to a different web server (192.168.0.2) Is there away to do this either through IIS, DNS or my router(Cisco ASA-5505)?

Drew
  • 11
  • 1

3 Answers3

6

A router or firewall can't do what you want, because it only handles TCP/IP traffic, and thus can only forward a given port to a given internal server; what you need is a reverse proxy, which, being able to understand HTTP(S) requests, can forward them to the right web server based on host headers. Microsoft TMG is a product which will happily perform this task.

However, if you are using HTTPS, things will get a little more complex, because only a given SSL certificate can be bound to a given IP address/port pair, so you will need a certificate capable of accepting both names.

Massimo
  • 72,827
0

No.

You cannot forward the same ports to multiple destinations - that is simply not possible.

You would have to buy a few extra IP adresses for it to work.

Frederik
  • 3,423
0

It's not possible to forward the same port to different host based on the FQDN of a request. DNS lives in the application layer, while port forwarding takes place in the transport layer. See the TCP/IP layer model.

Ansgar Wiechers
  • 4,267
  • 2
  • 19
  • 26