0

I have the following setup: -Domain environment -Firewall -Servers running Windows server 2012 -Web Application installed on IIS on a web server

Now, the application should be accessible from both local network and internet, but I am facing a problem with that. The application is accessible from the internet via the URL: "https://support.mydomain.com:8089/myapp" which is correct. But it is not accessible from the local network via this URL. Instead, it is accessible via the server local IP as following: http://172.x.x.x:8089/myapp/

When I run "nslookup support.mydomain" it resolved the public IP address. How can I access this app from both local network and internet via the public URL

Thanks in advance.

1
  • Where is the web server? In the DMZ? Does you internal DNS know the CNAME of the webserver for the local IP address?
    – John K. N.
    Dec 20, 2016 at 14:29

3 Answers 3

0

Create on your domain server the zone mydomain.com, and add the a name entry support <=> 172.x.x.x.

If it's only to test your website, you can add the host support.mydomain.com in your local host file.

0

Depending on your firewall, you likely do not have a loopback/return setup. You could resolve two ways.

  1. Create a DNS zone on your DNS server pointing your public DNS names to internal IP addresses. This is considered a split-scope DNS.

  2. On your firewall, you can create a loopback NAT policy to allow internal IPs to point to your Public IP and the firewall will point it back to the correct server IP. I've done this in firewalls like Cisco and Sonicwall. If you can tell us what kind of firewall you have, I can give you the layout of how to create this NAT policy. This will allow you to continue to use public DNS resolution for your public sites.

Sonicwall config: Original Source=Firewalled Subnets; Translated Source=Website Public IP; Original Destination=Website Public IP; Translated Destination=Webserver Internal IP; Original Service=8089; Translated Service=Original

2
  • Thanks for your response Gibson. We use Fortigate firewall. I will be very grateful If you can tell me how to configure it.
    – Anas
    Dec 16, 2016 at 15:50
  • I'm not strong on Fortigate. I'll do some research and try to get back. Dec 21, 2016 at 17:59
-1

You have port forwarding set up in your router to access this site from the internet. The port forwarding instruction should also include a loop back option to allow the router to forward local requests back to local servers.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .