Question

What UFW rules do I need to setup for internal Digital Ocean Servers

I recently enabled UFW and am now seeing a lot of blocks on it. What default servers specific to Digital Ocean do I need to setup?

Show comments

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.

This is kind of an open ended question which really the answer is you only need to open the ports you intend to use.

For example you will want port 22 open to communicate with your droplet via SSH. If you change your ssh default port you will need to update UFW to reflect that change.

Second you will need to open ports for services you intend to offer. ie. web and web ssl you will need ports 80 & 443 open respectively.