webpage works only from external network
Hi everybody,
my network is as follows: 1 modem/router connected to a switch. 1 webserver and 3 other computers. All behind the router. i have a little problem. The webserver works like a charm. The router forwards port 80 data to my webserver. So if someone visits my webpage by typing the ip of my router, they actually get to see it ;) but if i try to visit the webpage from my internal network, it doesn't work. instead, i het the login screen of my router. the only way to access my wepage from my internal network, is by typing the internal ip address of my webserver. Does ne1 know how to fix this? perhaps with iptables or a apache2 setting? Thnx! |
Quote:
The router only forwards traffic from the WAN side to the LAN, not LAN to LAN. |
Is there a way to make it work? It's kina annoying not being able to use my domainname from the internal network.
|
hi there,
you can always give the machine IP... 192.168.blah.blah.... regards, slackie1000 |
I don't see why you can't just access via internal ip address, or hostname of your webserver - you get the same content :) Alternatively, run through the-cloak.com or similar.
|
the reason i want it to work is because i have a couple of subdomains which don't work anymore if i access my webpage from the internal network. webmail for example.
my WAN ip is 82.173.something.something, my internal ip of my router is 10.0.0.123 and the ip of my server is 10.0.0.10. |
Quote:
Either that, or you would have to run a DNS server inside the LAN. But running DNS for a single address seems a bit overkill. |
All times are GMT -5. The time now is 08:36 AM. |