LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-25-2006, 06:00 PM   #1
joel_the_bowl
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Rep: Reputation: 0
Cannot access Internet (but server requests are being responded to.)


I operate a JSP server on Slackware for a charity. I am not a huge linux head, nor a network guru, so any help is hugely appreciated by myself and our clients.

I had a hard drive crash, so I recently reinstalled all software/data as necessary.

* I cannot seem to get outside internet access from the server console (if i type lynx i get "unable to locate remote host" or whatever.

* if i ping anything i get no response

Now what is confusing me:

* If I ping the server from another machine I get a response
* I am able to load JSP pages remotely (even across Web, not just locally on the network)
* Certain server functions that depend on accessing a website are reporting error, which agrees with problem above: the server itself does not seem to be able to "get out"

So, the problem is that: I can get to the server from outside, but can't get outside from the server.

Any suggestions are HUGELY APPRECIATED. I have run this same install procedure countless times over the years and never had this happen before. Thanks !!!!!
 
Old 10-25-2006, 07:06 PM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by joel_the_bowl
I operate a JSP server on Slackware for a charity. I am not a huge linux head, nor a network guru, so any help is hugely appreciated by myself and our clients.

I had a hard drive crash, so I recently reinstalled all software/data as necessary.

* I cannot seem to get outside internet access from the server console (if i type lynx i get "unable to locate remote host" or whatever.

* if i ping anything i get no response

Now what is confusing me:

* If I ping the server from another machine I get a response
* I am able to load JSP pages remotely (even across Web, not just locally on the network)
* Certain server functions that depend on accessing a website are reporting error, which agrees with problem above: the server itself does not seem to be able to "get out"

So, the problem is that: I can get to the server from outside, but can't get outside from the server.

Any suggestions are HUGELY APPRECIATED. I have run this same install procedure countless times over the years and never had this happen before. Thanks !!!!!

3 things

1 if your machine has 2 NICs or even 2 NICs at some stage the gateway ethernet device might be wrong.

2 If your in Australia or your provider uses Heartheat this was common to me. Heartbeat assignes an IP and all DNS however if you do not login or login fails you cant use anything.

3 Gateway IP address is probably wrong
 
Old 10-25-2006, 07:32 PM   #3
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
Quote:
Originally Posted by joel_the_bowl
I operate a JSP server on Slackware for a charity. I am not a huge linux head, nor a network guru, so any help is hugely appreciated by myself and our clients.

I had a hard drive crash, so I recently reinstalled all software/data as necessary.

* I cannot seem to get outside internet access from the server console (if i type lynx i get "unable to locate remote host" or whatever.

* if i ping anything i get no response

Now what is confusing me:

* If I ping the server from another machine I get a response
* I am able to load JSP pages remotely (even across Web, not just locally on the network)
* Certain server functions that depend on accessing a website are reporting error, which agrees with problem above: the server itself does not seem to be able to "get out"

So, the problem is that: I can get to the server from outside, but can't get outside from the server.

Any suggestions are HUGELY APPRECIATED. I have run this same install procedure countless times over the years and never had this happen before. Thanks !!!!!

3 things

1 if your machine has 2 NICs or even 2 NICs at some stage the gateway ethernet device might be wrong.

2 If your in Australia or your provider uses Heartheat this was common to me. Heartbeat assignes an IP and all DNS however if you do not login or login fails you cant use anything.

3 Gateway IP address is probably wrong
 
Old 10-25-2006, 08:31 PM   #4
joel_the_bowl
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
thanks - that makes sense. The motherboard actually has two LAN ports, neither of which originally worked for me, so I put in a card.

Could you suggest how to get the Gateway address configured properly ? I am using a linksys router and a cable modem, but have no network knowledge on linux. If you can help, that would be really great. thanks !
 
Old 10-25-2006, 10:33 PM   #5
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
Sounds very much like you have bad DNS info. If you couldn't get out and traffic couldn't come in, that sounds more like a gateway problem, but if remote machines can reach in to you, the gateway needs to be correct.

You say, "* if i ping anything i get no response" Are you pinging by name, or IP address? If it is just ping google.com that fails, then that is DNS.

The DNS file is /etc/resolv.conf. Take a look in there, and see if you have something like
Code:
nameserver 11.22.33.44
nameserver 100.101.102.103
Try to ping your gateway. Since traffic succeeds at coming in, I bet you will be able to do this. If that works, try pinging this address, 72.14.207.99. That is one of google's addresses, and it responds to ping requests. If that succeeds, then try to ping google.com by name. I think that will be the first thing to fail, and that is the only one that will require name resolution.

Peace,
JimBass
 
Old 10-26-2006, 10:47 AM   #6
joel_the_bowl
LQ Newbie
 
Registered: Sep 2003
Posts: 3

Original Poster
Rep: Reputation: 0
thanks

thanks Jim Bass - i updated the DNS entries in that file.

works like a charm !
 
Old 10-26-2006, 05:49 PM   #7
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
No problem, you're very welcome!

Peace,
JimBass
 
  


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
Apache Not Responded From Internet abovemedia Linux - Software 5 11-23-2004 12:31 PM
Unable to access my ssh server and ftp server from the Internet, but smtp works foxone Linux - Networking 1 05-28-2004 06:17 PM
Internet Access via Server louisb Linux - Security 3 01-09-2004 11:46 PM
mail server responded - BAD AUTHENICATION macdafoe Linux - Networking 4 09-17-2003 09:40 PM
client cannot access internet via server justwantin Linux - Networking 2 08-17-2003 01:32 AM


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