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

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.

×
2 answers

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

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

Submit an Answer