Monday 19 November 2018

networking - Connecting to my own network via external IP


Even though I have seen and read quite a few similar Q's I was still unable to understand what is required for me to be able to do this.


I have an internal network. One of the machines is a web server. The router is configured for NAT redirecting a specific port to to that machine.


A public domain name is configured using dynamic DNS to point to my external address.


So incoming communication hits the router from its WAN interface and gets pointed to the internal server on the right port.


But if I try to use my public domain name from another machine within my network if fails to be redirected to the server.




In a way I would like that the same NAT rules would apply not only to incoming traffic but to outgoing (sort-of) traffic and have it sent back to the right server.


Assuming this helps, my router (D-Link DSL-2760U) does support static routing, but I am not sure how to configure it. It has the following parameters:



  • IP Version

  • DstIP/PrefixLength

  • Gateway Interface

  • Metric



Answer



It's hairpin NAT, either the router supports it or it doesn't. Most only support WAN-to-LAN and LAN-to-WAN NAT. LAN-to-LAN is an unusual requirement (for a SoHo router) and frequently not supported.


No comments:

Post a Comment

Where does Skype save my contact's avatars in Linux?

I'm using Skype on Linux. Where can I find images cached by skype of my contact's avatars? Answer I wanted to get those Skype avat...