LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cannot access Internet (but server requests are being responded to.) (https://www.linuxquestions.org/questions/linux-newbie-8/cannot-access-internet-but-server-requests-are-being-responded-to-495549/)

joel_the_bowl 10-25-2006 05:00 PM

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 !!!!!

carl0ski 10-25-2006 06:06 PM

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

carl0ski 10-25-2006 06:32 PM

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

joel_the_bowl 10-25-2006 07:31 PM

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 !

JimBass 10-25-2006 09:33 PM

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

joel_the_bowl 10-26-2006 09:47 AM

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

works like a charm !

JimBass 10-26-2006 04:49 PM

No problem, you're very welcome!

Peace,
JimBass


All times are GMT -5. The time now is 05:01 PM.