I have a WEBserver IIS7 in my local network. When I go to "www.mydomain.com" from a computer inside same LAN I cant access it. If I put in the local IP it works. "www.mydomain.com" do also works from a different network. I guess there is some router isue. I use PFsense router.

  • You need what's called NAT hairpinning. I can't find a specific question that's a duplicate of yours, but if you search for "NAT hairpinning" here, there are lots of questions and answers that talk about it. – blm Oct 27 '15 at 22:55
  • So mutch help in so litle. Tank you for helping me in right directions! – Stian Størstfeskar Andersen Oct 27 '15 at 23:17
  • @blm Post this [link]doc.pfsense.org/index.php/… As answer. Tanks for the hint – Stian Størstfeskar Andersen Oct 28 '15 at 22:18
  • Ok, added an answer and include a bit on split DNS as well. Glad I could at least point you in the right direction. :-) – blm Oct 29 '15 at 1:46

pfSense calls it NAT reflection. That link is a page on pfSense's web site showing how to turn that on. That page also shows how to turn on an alternate solution, Split DNS, that lets you override DNS entries, so internally www.mydomain.com goes directly to the machine hosting the site without going out to the internet. It's basically like editing /etc/hosts except it applies to all machines in your network. While that will make reaching your server faster and will work even if your internet connection is down, it means you won't be hitting your site in the same way as other external users, which you may not want to do for testing purposes. Either method should work though, it just depends on your use cases which you want to use.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.