LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   webpage works only from external network (https://www.linuxquestions.org/questions/linux-networking-3/webpage-works-only-from-external-network-375168/)

Gino deSilva 10-20-2005 03:13 PM

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!

MS3FGX 10-20-2005 03:17 PM

Quote:

the only way to access my wepage from my internal network, is by typing the internal ip address of my webserver.
That is the way it is supposed to work.

The router only forwards traffic from the WAN side to the LAN, not LAN to LAN.

Gino deSilva 10-21-2005 06:02 AM

Is there a way to make it work? It's kina annoying not being able to use my domainname from the internal network.

slackie1000 10-21-2005 07:55 AM

hi there,
you can always give the machine IP... 192.168.blah.blah....
regards,
slackie1000

fouldsy 10-21-2005 08:30 AM

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.

Gino deSilva 10-21-2005 10:06 AM

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.

MS3FGX 10-21-2005 12:00 PM

Quote:

It's kina annoying not being able to use my domainname from the internal network.
You could manually add the domain name and local server IP into the "hosts" files on the machines inside the internal LAN. That way, when they enter the domain name, it will actually point them to the local IP of the server, without them knowing.

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.