Question

Can't access other servers over private network

  • Posted July 6, 2014

I’ve turned on private networking on two droplets, but I can’t even get them to ping each other over the private network. Any help?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hi @kamaln7, I have the same problem. I did all the steps you mentioned and still no luck connecting to mysql. But running nc -zv database-droplet-ip 3306 succeeded w/ my ufw on, the database ip I used is the private network address. When I try to turn off my ufw I have no trouble connecting to mysql, also when I allow my public ip on ufw it connects perfectly.

It turns out that one of my droplets wasn’t properly configured for private networking. I have it all sorted out now. Thanks.

nc -zv database-droplet-ip 3306 timed out (I replaced database-droplet-ip with the private network ip of the database droplet).

sudo netstat -plutn | grep 3306 on the database droplet returned:

tcp        0      0 0.0.0.0:3306            0.0.0.0:*               LISTEN      8312/mysqld

Do you have a firewall installed that might be blocking ICMP packets? I believe UFW does that by default. If you’re using UFW, try disabling it and trying to run ping again.

Also, what’s the output of the following command?

sudo sysctl net.ipv4.icmp_echo_ignore_all