Question

Can I create a droplet with no public IP?

  • Posted on December 1, 2014
  • samsAsked by sams

I’m thinking of doing Setup #2 but would like to restrict database server access. Im thinking I can, in theory, simply SSH from application server to database server to maintain db.


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

What I’ve found easiest when using Terraform is creating a firewall along with every “private” droplet to allow connections only from select IP ranges, the IP range of your VPC for instance.

as mentioned before you can disable eth0 and use private network to access your droplet. you have 2 options:

  1. manually edit interfaces file in /etc/network/interfaces
sudo vi /etc/network/interfaces

here you just delete eth0 cfg block.

  1. simply disable eth0 from command line
ifdown eth0

This comment has been deleted