You can create a firewall at any time from the control panel by opening the Create menu in the upper-right and choosing Cloud Firewalls.
On creation form, you can choose a name for your Firewall, define its inbound and outbound rules, and choose the resources to apply the rules to.
You need to define a name for your Firewall before you can create it.
You need to define at least one rule to create a Firewall.
When you first create a Cloud Firewall, there are four inbound and outbound rules defined by default that allow some fundamental traffic. You can keep, modify, or delete these rules, and create new ones.
Because the compromise of a server typically begins over an inbound connection, the default inbound connections remain entirely restricted with one exception. The suggested rule allows SSH connections on port 22 from anywhere so that users will be able to administer the server from a terminal.
Many fundamental services rely on outbound communication. Utilities like
ping require outbound ICMP. DNS lookups, VoIP and NTP all rely on outbound UDP. Tasks like data synchronization, package list updates, web requests and email require outbound TCP connections.
Because of this, the suggested outbound rules permit all traffic to any destination on any port. These defaults make it easier to set up a new server without introducing restrictions that could block expected functionality.
You can apply a Firewall’s rules to Droplets in the Firewall’s Apply to Droplets field. When you create a Firewall, you can leave this field blank and assign Droplets later.
In the Apply to Droplets field, you can choose Droplets by name, tag, or a combination of both. You can also search for Droplets by IP address.
There are limits on the number of Droplets and tags that can be added to a Firewall, but there are no limits to the number of Droplets that can be associated with a tag. Using tags allows you to exceed the individual Droplet limit for Firewalls. You can also tag a Droplet when you create it, which means you can apply Firewall rules immediately.
Droplets can be protected by more than one Cloud Firewall. When they are, a union of the rules is applied. For example, if one rule allows TCP from any source and another allows TCP from a restricted range, the union of the two means that TCP traffic is allowed from anywhere.
To create the Firewall, click Create Firewall.
Once you’ve created a Firewall, the Firewalls tab serves as the main overview page and provides summary information including the number of Droplets protected, the number of rules and the date the Firewall was created.