LinuxQuestions.org
Help answer threads with 0 replies.
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 10-12-2015, 12:57 PM   #1
jeffneils
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Rep: Reputation: Disabled
I can ping anything from my server but I cannot reach my server public IP address


Hi,

This problem has been occurring a lot lately.

If I use an IPMI or KVM device and log into the server I can ping 8.8.8.8, or any website for that matter. However, when I try to ping the public IP address of the server it's non responsive at 100% packet loss. SSH doesn't work either.

First thought: Firewall . So I disable the firewall. --> Still cant ping or access server.
Second thought : Maybe I missed something with the firewall - so i co0mplertly remove it. I'm still unable to ping or access the server but the server can still ping google and so on.

The Operating system used is Centos 6/64 bit.

Please tell me someone can help!
 
Old 10-12-2015, 02:41 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Run tcpdump -i eth0 icmp (and replace eth0 with the correct interface) to see if anything arrives at the interface. If not, you should consider a problem with the network setup outside of the server.
 
Old 10-12-2015, 02:45 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What's the output of:

Code:
route -n
ifconfig lo
 
Old 10-12-2015, 09:26 PM   #4
jeffneils
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
I cant really copy and paste from the KVM so I'll have to attach an image of the KVM screen.

This one shows route -n and ifconfig lo
Attached Thumbnails
Click image for larger version

Name:	ifconfig_.png
Views:	224
Size:	26.3 KB
ID:	19792  
 
Old 10-12-2015, 09:33 PM   #5
jeffneils
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
Run tcpdump -i eth0 icmp (and replace eth0 with the correct interface) to see if anything arrives at the interface. If not, you should consider a problem with the network setup outside of the server.
Attached is the tcpdump command you requested.

Still not resolved.
Attached Thumbnails
Click image for larger version

Name:	tcpdump_.png
Views:	143
Size:	21.4 KB
ID:	19793  
 
Old 10-12-2015, 09:35 PM   #6
jeffneils
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
If I reformat this server and re setup everything it will work again but then after a few months the same thing happens. It pings out but I cant reach it via SSH or any other method.

Abny suggestions and help is greatly appreciated.
 
Old 10-13-2015, 02:43 AM   #7
sam.pedraglio
Member
 
Registered: Jul 2005
Distribution: Mint 14 64bit
Posts: 71

Rep: Reputation: 16
Hi Jeffneils, I had the same issue in the past but it wasn't a configuration problem it was my ISP that was blocking the ping from within my network to the same network.
Did you try to ping the server from the outside? You can try this using your mobile phone if it's not connected to your net via wirelesss.
 
Old 10-13-2015, 03:22 AM   #8
jeffneils
LQ Newbie
 
Registered: Oct 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
I did, i tried from multiple different networks and multiple iPs. Still the same.
 
Old 10-14-2015, 02:10 AM   #9
SothebyIT
LQ Newbie
 
Registered: Sep 2011
Location: Teesside
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Hi, can you post the output of ifconfig (without lo at the end). Also, what happens if you run iptables -L

Thanks

Neil
 
Old 10-15-2015, 02:28 PM   #10
countrygrrl_ak
LQ Newbie
 
Registered: Aug 2011
Location: Alaska
Distribution: CentOS, Debian PowerPC, OS X
Posts: 12
Blog Entries: 1

Rep: Reputation: Disabled
I can see that Berndbausch has the right idea. Run tcpdump and then using another device ping your server. Look to see if anything is registered. I would suggest however that you redirect the output of tcpdump to a text file. It's just much easier to scroll through and high light, cut/paste what you receive. You do not have to record an ICMP response. The line below will capture literally everything generating traffic from and to your server.

# tcpdump -i <interface> > testFile

If you do not record anything from your outside pings, then what kind of networking equipment or firewalls are between you and the Internet? Those you will need to investigate.
 
Old 10-15-2015, 10:55 PM   #11
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by jeffneils View Post
Attached is the tcpdump command you requested.

Still not resolved.
If this system's firewall or routing table were at the root of the problem, you would at least see the packets arrive at the interface and perhaps get ignored or actively refused. However nothing arrives.

Either the interface is somewhat misconfigured at the hardware level or, more likely IMO, something outside that server blocks it. Talk to the network team.
 
Old 10-18-2015, 09:50 PM   #12
Norseman01
Member
 
Registered: Nov 2012
Posts: 85

Rep: Reputation: Disabled
Quote:
Originally Posted by jeffneils View Post
Hi,

This problem has been occurring a lot lately.

If I use an IPMI or KVM device and log into the server I can ping 8.8.8.8, or any website for that matter. However, when I try to ping the public IP address of the server it's non responsive at 100% packet loss. SSH doesn't work either.

First thought: Firewall . So I disable the firewall. --> Still cant ping or access server.
Second thought : Maybe I missed something with the firewall - so i co0mplertly remove it. I'm still unable to ping or access the server but the server can still ping google and so on.

The Operating system used is Centos 6/64 bit.

Please tell me someone can help!
=======================
Let me guess---
your server talks to a router which talks to the gizmo that handles conversations with the outside world?

Login to your server; from there enter your ROUTER and make sure it is ping enabled and then try again.
if you want the ISP assigned address, look in your router's "config" tables.
probably called WAN ADDRESS or some such.

If you are hoping to be able to create your own address updater - you may need to put aside some time for doing this.

Norseman01
 
  


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
[SOLVED] Local users cannot access my web server using public address sdblanchet Linux - Networking 1 11-21-2014 08:42 PM
[SOLVED] Local users cannot access my web server using public address sdblanchet Linux - Networking 0 11-18-2014 07:45 PM
Setting up a VPN for windows clients to reach debian server over the public Internet irvken Linux - Networking 1 01-30-2010 05:35 AM
Server can ping internally, but cannot reach Internet Tino27 Linux - Networking 4 04-09-2007 06:24 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 04:57 AM

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

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