Do I have to use ufw if I am using the firewall within the digital ocean control panel?
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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.