I can ping anything from my server but I cannot reach my server public IP address
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.