New
#1
Passing Port 80 Service Request Through Router From WAN To LAN
I run a web server from my laptop, and my IP address (location) gets updated via DynDNS.org servers.
My notebook is always behind a NAT-configured LAN, and I have configured the router firewall to pass port 80 service requests to my IP (usually 192.168.x.2, where x is maybe 0 or 1 or whatever...I use NetSetMan for location based setting). Note: the DHCP server is configured to stay away from static addresses in the private LAN.
Most routers have their own port 80 service, the configuration interface, accessible by hosts inside the LAN.
I don't have a problem with port 80 service requests coming from the WAN getting passed to 192.168.x.2 host running the web server.
BUT, users in the 192.168.x subnet requesting service from within the LAN do NOT get delivered the web page from host 192.168.x.2, but instead the router's configuration interface, if they use the host NAME. Of course, if they use the host IP address, they get the content.
What is happening of course is that if anyone uses "http://mywebserverhostname.com/", it goes to DynDNS.org where the IP is resolved to the address a.b.c.d, the WAN IP address of the router I am currently connected to. So the http client bundles the packet to the destination a.b.c.d:80.
The users INSIDE the LAN get the router configuration interface web page when they type in a.b.c.d:80, but not users OUTSIDE the LAN (in that WAN).
What's the solution?