Validated on 27 Mar 2019 • Last edited on 14 Aug 2024
protocol
DigitalOcean Cloud Firewalls are a network-based, stateful firewall service for Droplets provided at no additional cost. Cloud firewalls block all traffic that isn’t expressly permitted by a rule.
Add or Remove Droplets from a Firewall Using the CLI
The commands to add and remove Droplets from a firewall require the Droplet’s ID. To retrieve a list of Droplets and their IDs, use the doctl compute droplet list command.
How to Add a Droplet to a Firewall Using the DigitalOcean CLI
Add or Remove Droplets from a Firewall Using the API
The API calls to add and remove Droplets from a firewall require the Droplet’s ID. To retrieve a list of Droplets and their IDs, use the /v2/droplets endpoint.
How to Add Droplets to a Firewall Using the DigitalOcean API
Add or Remove Droplets from a Firewall Using the Control Panel
You can modify the Droplets protected by a firewall in the control panel by choosing Networking from the top menu, then Firewalls. Select the firewall you want to check or modify, then navigate to its Droplets tab.
A firewall’s Droplets tab lists all of all the Droplets protected by the firewall. Droplets added individually are shown on their own line, and Droplets added with a tag are shown below the tag.
To add another Droplet or tag to the firewall, use the Add Droplets button.
To remove a Droplet or tag from a firewall, use its More menu and select Remove.
From the firewall’s Droplets panel, you can see which Droplets are affected by that firewall’s rules. To see all the rules affecting a specific Droplet, you need to view the individual Droplet’s networking page.