FIrewall configuration

September 29, 2017 1.4k views
Firewall Ubuntu 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
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:

by Melissa Anderson
DigitalOcean Cloud Firewalls, available in all regions at no charge, provide a network-based, stateful firewall service for your DigitalOcean Droplets. They block all traffic that isn't expressly permitted by a rule. They're designed to be easy to configure, quick to apply, and automation-friendly. In this guide, we'll explore how to create and manage DigitalOcean Cloud Firewalls.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!