LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2011, 07:17 PM   #1
SecurityGate
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
CentOS 5.6 can connect to internet, but can't display websites or SSH


I wasn't sure to post this either in Server or Newbie, but I'm just hoping I can get an answer for my question.

I am running CentOS 5.6, and for the last two weeks or so I've had my website, ftp and SSH working flawlessly. I could tunnel in, put documents on the server, and display everything without a hitch. I woke up this morning, trying to connect to the server, with no avail. I can only connect to my SSH by using the interior IP address.

I didn't change anything last night, and when I am on the server itself, it can connect to the internet.
 
Old 05-19-2011, 07:26 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 164Reputation: 164
Have you looked in the log files for more info? I don't use CentOS but as a starting point I'd look in /var/log for the syslog, messages, secure and ftp (vsftpd?) logs. The Apache logs might be there as well or they may be somewhere like /usr/local/apache2/logs
 
Old 05-19-2011, 08:52 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
Then some issue for sure.

In a normal install I'd say reboot.

But sure restart your servers http and such.

Guess you could check that your ip and dns is the correct ones if you are using a FQDN. Try the IP address in the browser line.

Can anyone else get to the site?
 
Old 05-19-2011, 09:55 PM   #4
SecurityGate
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
I restarted HTTPD and the server in general. I checked the logs, and to be honest, I'm better versed in *BSD, so I checked the log files that I would assume would be the culprits, but nothing seemed out of order.

I just typed in the IP address of the server into the browser and I got a "Connection has timed out" error. No one else can access the sites, the server is down for everyone.

I have all the needed ports forwarded.
 
Old 05-20-2011, 02:00 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
I could be wrong, but it sounds like you have a LAN (at home ?) and you used to be able to connect to your web server from outside ie the internet, and now you can't.
You can only connect to it from inside your LAN.
You can connect out to the internet.

If that's correct,

1. check the web server is actually up.
2. TBH, it sounds like your external IP provided by your ISP has changed. Unless you've paid for a static IP. that will happen, sooner or later.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Log from INTERNET to CENTOS 5.4 by SSH? copy_right Linux - Networking 3 11-10-2010 03:41 AM
Virtualbox CentOS Guest can not connect to Internet from XP Host sokha Linux - Virtualization and Cloud 2 03-31-2010 12:28 AM
cannot connect to internet from centos machine mbanwi Linux - Newbie 3 07-08-2009 09:40 PM
Cannot Connect to Internet; CentOS lucknowm62 Linux - Networking 8 08-26-2007 02:27 PM
Changing display/unable to connect to internet with Slackware 9.1 jaydoubleyou Slackware 8 01-08-2004 12:43 PM


All times are GMT -5. The time now is 07:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration