Question

FIrewall configuration

Posted September 29, 2017 1.6k views
FirewallUbuntu 16.04

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?

edited by asb

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.

×
1 answer

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:

Submit an Answer