Why am I suddenly unable to ping or curl a floating IP server from itself?

Posted April 7, 2017 6.3k views

I have configured a floating IP to point at my server.

When I do: ping <my-floating-ip-address>

It works fine from my computer and from other servers. But when I run the same command from the server itself (i.e. the server currently pointed to by the floating IP), it produces no results.

Uptil yesterday I was able to do a curl from my server to itself via the floating IP. Today I can’t. I haven’t changed any configuration on my side.

Has something changed in the way floating IP addresses work?

I’ll include my firewall settings for completeness, but I haven’t changed them recently and, as I say, it used to work.

Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere             state RELATED,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:http state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:https state NEW
ACCEPT     tcp  --  anywhere             anywhere             tcp dpt:ssh state NEW
ACCEPT     icmp --  anywhere             anywhere             limit: avg 1/sec burst 5 icmp echo-request

Chain FORWARD (policy DROP)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
  • Hi @david615230
    I don’t have a floating ip available to test with, but you might want to consider creating a ticket (maybe referencing this thread) with support.

  • Thanks, I’ve raised a ticket. It’s odd! Another droplet with a floating IP has no problem pinging itself on its floating IP. It seems like it might be isolated to that droplet. I tried opening the firewall temporarily and that made no difference. I tried traceroute and it returned no routing information at all. I’m not sure how to diagnose the problem further. I strongly suspect it’s a Digital Ocean routing issue because it was working yesterday and I haven’t changed any config on that droplet for months. I rebooted the droplet this morning and it made no difference.

  • I have the same thing going on and it has caused a heap of problems. Nothing has changed on my side. Unassigning and re-assigning fixed it. Would have been nice to receive an email warning that floating IPs were messed up, or better, that they would just fix it for everyone.

  • @mWater When did you first assign the floating IP? Was it a long time ago or quite recently? I am interested to know whether this is a one-off glitch from a while a go or if this is something that is still happening.

  • This was at least 3 months ago; not sure of the exact date. I’ve opened an issue with DO; hopefully they will fix it for everyone.

  • Show 3 more comments

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Digital Ocean support asked me to try to unassigning and reassigning my floating IP. It worked. (But doesn’t explain why it happened in the first place and whether it will happen again. I hope they will look into it.)

Thanks @david615230 - unassigning and reassigning did the trick for me too.

But having this happen out of the blue today on my production site with no explanation is making me really afraid of using floating ips from DigitalOcean…