FIrewall configuration

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?


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.

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: