Iis – How to reverse NAT by destination name

iisnat;port-forwardingreverse-proxyweb-server

I have one public IP Address and two web server inside my LAN.

For example 10.0.0.1 and 10.0.0.2 are the local IP addresses of my Web servers. I have configured on my router NAT for port 80 to 10.0.0.1.

I am just wondering if it is possible to reverse NAT in the router by name? If the request header is test1.example redirect to 10.0.0.1 and if it is test2.example redirect to 10.0.0.2. Or can I do that at IIS level? I mean in the router redirect all 80 request to 10.0.0.1 and in the Webserver1 if the hostname is test2.example then redirect to 10.0.0.2.

Best Answer

The only firewall that I know that can do that is Sophis UTM, with the Web Application Firewall (waf) module.

You create a virtual web server for each real webserver in the firewall

https://community.sophos.com/kb/en-us/120454

and an answer there https://community.sophos.com/products/unified-threat-management/f/web-server-security/90829/web-application-firewall-reverse-proxy-support-multiple-domain-or-wildcard-domain