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?
I have configured like this:
sudo ufw allow OpenSSH
sudo ufw allow http
sudo ufw allow https
Do i still need to activate firewall in my controlpanel?
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: