Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-20-2005, 03:13 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 3
Rep:
|
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!
|
|
|
10-20-2005, 03:17 PM
|
#2
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
|
|
|
10-21-2005, 06:02 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 3
Original Poster
Rep:
|
Is there a way to make it work? It's kina annoying not being able to use my domainname from the internal network.
|
|
|
10-21-2005, 07:55 AM
|
#4
|
Senior Member
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037
Rep:
|
hi there,
you can always give the machine IP... 192.168.blah.blah....
regards,
slackie1000
|
|
|
10-21-2005, 08:30 AM
|
#5
|
Senior Member
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284
Rep:
|
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.
|
|
|
10-21-2005, 10:06 AM
|
#6
|
LQ Newbie
Registered: Oct 2005
Posts: 3
Original Poster
Rep:
|
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.
|
|
|
10-21-2005, 12:00 PM
|
#7
|
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852
|
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.
Last edited by MS3FGX; 10-21-2005 at 12:07 PM.
|
|
|
All times are GMT -5. The time now is 11:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|