I have configured like this:
# Enable OpenSSH connections
sudo ufw allow OpenSSH
# Enable HTTP traffic
sudo ufw allow http
# Enable HTTPS traffic
sudo ufw allow https
Do i still need to activate firewall in my controlpanel?
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!
You do not need to use the DigitalOcean Cloud Firewalls that are available in the control panel. If you only have a single Droplet, using UFW might be more straightforward. Where DigitalOcean Firewalls really help to simplify things is when you’re running many Droplets. They allow you to reference other Droplets by name or tag. They are also configurable via the API allowing you to automate various tasks. It’s also sometime useful to be able to control the firewall from outside of the server. That can allow you to do things like shutoff SSH access completely unless you need to connect.
Find out more about DigitalOcean Cloud Firewalls and when you might use them in this tutorial:
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.