Question

Do I have to use ufw?

Do I have to use ufw if I am using the firewall within the digital ocean control panel?

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.

Hello, @shehethey

UFW is a host-based tool, while Digital Ocean’s Cloud Firewall is a network-based one. Using DO’s tool will not only provide reusability of rules (deploy inbound / outbound rules to many droplets - or even tags - at once) but also processes them before even getting to the droplet. Don’t get me wrong, UFW is an amazing, full-feature and extremely efficient tool, however when it comes to deploying shared common rules to lots of servers, it’s a bit time-consuming and repetitive task.

When you only have a single Droplet, using UFW will be more beneficial as there is no need for scalability. Additionally, when you need to use custom defensive mechanisms like Fail2ban, enabling UFW really helps too.

Hope this helps!

Regards, Alex

Hello shehethey,

Happy to see you the second time.If you want to secure your servers, DigitalOcean’s firewall is enough.For more you want,ufw can be enabled.Use them together,like two-fact verification,is the best.

Have a nice day.

Shiroka