LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-20-2005, 03:13 PM   #1
Gino deSilva
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Rep: Reputation: 0
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!
 
Old 10-20-2005, 03:17 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 10-21-2005, 06:02 AM   #3
Gino deSilva
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Is there a way to make it work? It's kina annoying not being able to use my domainname from the internal network.
 
Old 10-21-2005, 07:55 AM   #4
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
hi there,
you can always give the machine IP... 192.168.blah.blah....
regards,
slackie1000
 
Old 10-21-2005, 08:30 AM   #5
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 10-21-2005, 10:06 AM   #6
Gino deSilva
LQ Newbie
 
Registered: Oct 2005
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 10-21-2005, 12:00 PM   #7
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
name of external 54k modem that works in linux markhod Linux - General 8 12-23-2005 05:14 PM
Wireless Network Link Established - No webpage though mrh7184 Linux - Wireless Networking 6 10-04-2005 11:49 PM
External USB hard drives works with Linux? Xavius Linux - Hardware 2 10-03-2005 01:54 PM
Plextor External DVD+/-RW Px-708UF works under Linux ? tvn Linux - Hardware 0 07-22-2004 10:14 PM
which brands of external modems works with linux? doris Linux - General 4 05-25-2001 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration