Firewalls are crucial for any server’s security.

The firewall system is calledCloud Firewalls.

Some of the features of Cloud Firewalls are:

Recently, DigitalOcean releasedVirtual Private Cloud (VPC)networks.

Android Auto taskbar-1

Cloud Firewalls work in conjunction with VPCs to further segment and protect traffic.

In this example, it will be the IP address

.

Next, let’s take a look at the Outbound Rules.

‘Figment’ in a Galaxy Z Fold 6 next to an 8BitDo Pro 2 controller.

What you see below are the default rules.

Generally, this is okay, depending on your needs.

Most server administrators have a higher level of control on the outbound traffic rather than the inbound.

Article image

That being said, you could certainly limit this traffic.

Finally, let’s apply this new firewall to a newly created VM that we have tagged

.

Why apply the firewall to a tag rather than the Droplet itself?

Create a firewall.

By applying to a tag, this firewall will automatically apply to every new resource that is tagged appropriately.

It automates the configuration and means that important firewall configurations will not be missed.

Cloud Firewall Caveats

You shoudl be aware of a couple of items when using Cloud Firewalls.

Outbound Rules

Apply new firewall to newly created VM

Firewall is properly applied to Droplet and drops all traffic that doesn’t fit that pattern before traffic makes it to Droplet

ssh-limit firewall is automatically applied

Cloud firewall rule applied to VPC traffic range