LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-29-2003, 06:47 AM   #1
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Rep: Reputation: 52
Netgear router blocking website when using internal network


I have a webserver. My site is accessible from outside the network on which Apache lives but internally, a request for the web page brings up the username and password box for my Netgear router. I'm sure that the answer is staring me in the face (as usual!!) but I can't see it. There's no problem accessing the site using the local address of the server.
Thanks in advance!!
 
Old 09-29-2003, 08:05 AM   #2
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
If I'm hearing your right, you have a webserver NAT'd on a local subnet behind a router, and you use the router to forward poirt 80 to the server (very common setup). If you type www.insertwebsitenamehere.com externally it connects fine, but if you do so internally it connects you to the routers admin console.
Sounds like this might be a DNS problem. Do you have a DNS server on your internal network that is somehow resolving www.insertwebsitenamehere.com to your routers INTERNAL address?

slight
 
Old 09-29-2003, 08:18 AM   #3
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
That makes sense - but I have no memory of setting up a DNS server anywhere on the network. I'll have a look around though. I'll let you know. Cheers slightcrazed.
 
Old 09-29-2003, 09:32 AM   #4
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Hmmmm! If the Netgear Router is pointing port 80 to my Apache server, does that mean that the DNS server is on the Apache box. Nothing else is pointing anywhere on the router (apart from ports 22 and 10000). How would I find the DNS Server? I was playing around with ddclient last week - could that be it?
 
Old 09-29-2003, 09:50 AM   #5
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Very well could be. DDclient does dynamic DNS updating.

I apologize though, it is monday, and it is early, and the coffee hasn't kicked in yet. The client that you are using to browse to the site on the internal network, where is it pointing for DNS?

slight
 
Old 09-29-2003, 10:02 AM   #6
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
Monday is almost over for me! ;-)
 
Old 09-29-2003, 10:10 AM   #7
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
Gee... don't rub it in or anything.

slight
 
Old 09-30-2003, 05:46 AM   #8
esteeven
Senior Member
 
Registered: Oct 2001
Location: Bristol UK
Distribution: Arch Slackware Ubuntu
Posts: 1,082

Original Poster
Rep: Reputation: 52
It's Tuesday now....and I'm three hours in to my working day!!
I still have my problem though. I removed ddclient from the Apache box. I still can't load the website from inside the network. The page loads using its local address.


The client that you are using to browse to the site on the internal network, where is it pointing for DNS?

I'm somewhat in dark here. Galeon/Mozilla/K-Meleon etc are all default setups - if that's what you mean. How could I find out what is pointing at what? Is it /etc/hosts ???? Or ...... err! ????
 
Old 09-30-2003, 07:48 AM   #9
slightcrazed
Member
 
Registered: May 2003
Location: Lisbon Falls, Maine
Distribution: RH 8.0, 9.0, FC2 - 4, Slack 9.0 - 10.2, Knoppix 3.4 - 4.0, LFS,
Posts: 789

Rep: Reputation: 30
/etc/resolv.conf is where it is usually located. cat the file and it will give you IP addresses of DNS servers, in the order that it will try.

Usually behind a router the IP address will be the routers address, but you can set it to point directly at your ISP's DNS and that may help.

slight
 
  


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
Question about DSL router and small internal network shazam75 Linux - Security 3 09-23-2005 07:55 PM
Network connection to win xp and netgear router working but slowly yalpuk Linux - Networking 3 12-26-2004 06:06 PM
noFTP acces via Internet on Debian 3.0 box on a LAN network with Netgear rp614 router ferry Linux - Networking 2 08-16-2004 12:33 AM
Permit access to only one website from a station in the internal network rocordial Linux - Security 20 06-06-2004 06:58 PM
Super Genius Needed: SuSEfirewall2 HELP with ssh and internal network and router ash0573 Linux - Networking 8 05-01-2003 05:20 PM

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

All times are GMT -5. The time now is 08:29 AM.

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