LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-02-2014, 06:22 PM   #1
butchrappe
LQ Newbie
 
Registered: Dec 2012
Distribution: CENTOS
Posts: 21

Rep: Reputation: Disabled
Centos 7 web site seen, but not on local net


Now on Centos v7, and working nicely - almost.
Web site is visible to the world, but not on the local network.
That makes it difficult when making changes - need to ask someone external if it worked.

It actually works if I use the local host IP address. But I can only get one specific
web page, since any link will automatically try to use the <web name address>/new page.
Any time I use <local ip addr>/new page - that works fine.

What needs to be properly configured to enable this? (so we can see our web (in normal mode)on local net)

I'm certain it's some "easy" config, but right now it's beyond me.

Thanks much !
Butch
 
Old 12-02-2014, 08:29 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Could you provide a little more information. I understand this to mean that

1) you have a public-facing website on a server in your local network,
2))that computers outside your local network can access the website via its public DNS,
3) that computers inside your local network cannot access it via the public DNS, but
4) that computers inside your local network can access it via their local network ip address.

Is that an accurate understanding of what's going on?

Quote:
But I can only get one specific web page, since any link will automatically try to use the <web name address>/new page.

Any time I use <local ip addr>/new page - that works fine.
Do you mean by this that your browser is trying to use the name of the last page you visited or is something else happening?
 
Old 12-03-2014, 07:42 AM   #3
butchrappe
LQ Newbie
 
Registered: Dec 2012
Distribution: CENTOS
Posts: 21

Original Poster
Rep: Reputation: Disabled
Sorry, I didn't answer the second question (but I don't see my first reply - so I'll provide that as well.

- Answer to first question: You have it accurate.

- More info for the second question:
Since any link on the original page would try to take us thru <web name address>/link-page.html - it doesn't work.
If we instead use <ip address>/link-page.html - it can obtain/present the page.

Can't get there using <web name> - as in www.xxx.com/link-page.html

Is there something about having the server provide a different routing if it's talking to a "local" machine?
Or are the local machines not going out to the world to define the www.xxx.com address?
How to make this work?

Thanks much.
 
Old 12-03-2014, 07:51 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
I really don't have any idea what's going on here, but I have a couple of thoughts regarding troubleshooting.

Try doing a dig and a whois from a local machine and comparing the results with the same commands run from an external machine. It could be that the DNS is not resolving properly from inside the network if your outfit is running it's own internal DNS servers (admittedly, this is stab in the dark).

Also, try the same experiment using traceroute (tracert on Windows). That may give some hint as to where the attempts to connect from within the local network are failing.

See the man files for the commands for more information about them.
 
Old 12-03-2014, 08:44 PM   #5
butchrappe
LQ Newbie
 
Registered: Dec 2012
Distribution: CENTOS
Posts: 21

Original Poster
Rep: Reputation: Disabled
The external machine seems to see everything correctly.

A local linux machine can't see via WHOIS. But both DIG and TRACEROUTE come up with the same network address.
TRACERT on windows notebook also provides the network address.

I'm wondering about the WHOIS on the linux machine. Think that's significant?
 
Old 12-03-2014, 08:51 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Quote:
I'm wondering about the WHOIS on the linux machine. Think that's significant?
So you are saying that the traceroute from the internal machine reaches the destination without breaking somewhere along the way?

I think whois must be telling us something. I'm not sure what, but sure as shootin' someone here does. Can you post the output of the two "whois" results? For readability, please surround it with "code" tags, which become available when you click the "Go Advanced" button to the right of the "Quick Reply" button beneath the compose message window.
 
Old 12-03-2014, 09:38 PM   #7
butchrappe
LQ Newbie
 
Registered: Dec 2012
Distribution: CENTOS
Posts: 21

Original Poster
Rep: Reputation: Disabled
actually, now that you asked about "breaking". I believe the (local) windows TRACERT worked - because it did one jump?
It listed 1 line, and said Trace complete.

The (also local) linux machine (Fedora) listed 30 lines, and did not say Trace complete. I thought since it coughed up
the correct address that it "worked".

I sent a note to someone on an outside machine to send me a copy of his info - but we were working on the server a bunch,
and he's probably logged-off for the night.

ALL our computers have the DNS sites and our gateway defined. (or so I think).
How about I get the outside info, and make sure all computers have the same info. Expect that note tomorrow (possibly
afternoon unless I can get it all early before I head out on the road).

I don't want to keep you working this until I can give you 100% certain info.

Thanks much - again.
 
Old 12-03-2014, 09:47 PM   #8
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,321
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
Quote:
The (also local) linux machine (Fedora) listed 30 lines, and did not say Trace complete. I thought since it coughed up the correct address that it "worked".
Sounds as if it did not so much complete as it died.

The last IP it reported can help us figure out where the trace died. That's why traceroute is such a useful command.
 
Old 12-14-2014, 08:47 AM   #9
butchrappe
LQ Newbie
 
Registered: Dec 2012
Distribution: CENTOS
Posts: 21

Original Poster
Rep: Reputation: Disabled
After a few years (and much frustration), I again went thru the settings on our primary router. I decided to experiment with some of them, one at a time. I discovered a WAN setting to: Filter internet NAT Redirection. When I read the router's online help about that setting, I decided to turn it off. I can now see my web site on the internal LAN. I'll get external verification that I didn't mess up the web from the world's viewpoint, and close this. So our architecture is: World -> DSL -> router -> LAN, including the server
;;;; The router was responsible for not seeing the web from the internal LAN (other than on the server, where it always appeared healthy)

Thanks so much for all your assist.
 
  


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
[SOLVED] CentOS 7 Web site not seen butchrappe Linux - Server 3 12-02-2014 05:59 PM
block particular web site form multiple site hosted web server and allow others lasantha Linux - Security 2 08-17-2010 01:49 PM
Can't find web site with a local IP address. swamprat Linux - Networking 2 09-24-2009 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 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