This is a research guide based on cited documentation. It is not a report of firsthand testing. Our editorial method

How Cloud Firewalls behave

DigitalOcean describes Cloud Firewalls as a network-based, stateful firewall service for Droplets, provided at no additional cost, that blocks all traffic not expressly permitted by a rule. Traffic is filtered at the network layer before it reaches the Droplet, so there are no traffic logs. Rules apply to both public and VPC traffic. Adding a rule does not end existing connections. Deleting a rule in the control panel takes effect immediately without a confirmation prompt.

Since 4 August 2026 rules can deny as well as allow, and deny rules take precedence over matching allow rules. Allow rules support ICMP, TCP and UDP; only deny rules can use the all protocol. When a Droplet has several Cloud Firewalls, DigitalOcean combines all their rules into one set and deny rules win even across firewalls, so a broad allow rule on one firewall opens traffic that a stricter firewall without a deny rule would block.

Limit or defaultValue
Default inbound rule on a new firewallSSH on port 22 from anywhere
Default outbound rulesPermit all traffic to any destination on any port
If no outbound rules existNo outbound traffic is permitted
Rules per firewall50 incoming and outgoing combined
Droplets and tags per firewall10 Droplets and 5 tags; a tag has no Droplet limit
Load balancersCloud Firewalls cannot be applied to them
Custom imagesNeed an outbound UDP 67 rule for DHCP

A minimal rule set for WordPress

A starting point assembled from the documented presets and defaults. Replace the SSH source with your own addresses.

DirectionTypePortSource or destinationWhy
InboundHTTP presetTCP 80All IPv4 and All IPv6Redirects visitors who type http:// to HTTPS
InboundHTTPS presetTCP 443All IPv4 and All IPv6The site itself
InboundSSH preset or customYour sshd portYour office IP, a VPN range or a bastion tagAdministration and the Droplet Console
InboundICMPn/aOptionalPing for troubleshooting
OutboundDefault ICMP, TCP and UDPAllAll IPv4 and All IPv6Updates, payment gateway APIs, email APIs, monitoring agent, metadata service

Lockout risks and how to avoid them

The Droplet Console in the control panel connects over the network like any SSH client. DigitalOcean's console documentation says your cloud firewall and any host firewall must accept SSH on the port sshd uses, and that the Droplet agent needs outbound TCP to 169.254.169.254 to fetch SSH keys. The documentation lists no source IP ranges for the console, so plan as if restricting SSH to your own address can also block the Droplet Console.

The fallback is the Recovery Console, which DigitalOcean says works even if a Droplet has lost network access or sshd has failed. It requires password authentication on the Droplet, so set a strong root or user password before you tighten SSH, or you will have no way in after a bad rule.

MistakeEffectPrevention
SSH allowed only from a home IP that changesYou and possibly the Droplet Console lose SSHUse a VPN or bastion with a fixed address; keep Recovery Console password access
Every outbound rule removedNo outbound traffic at all: updates, email APIs and the console's metadata lookup failKeep the defaults, or keep TCP 443 plus TCP to 169.254.169.254
Cloud Firewall and ufw disagreeTraffic allowed in one is dropped by the otherDigitalOcean says to make sure the two do not conflict; open the same ports in both
Rule deleted by mistakeTakes effect immediatelyEdit rules on a test Droplet with the same tag first
Second firewall with a broad ruleThe union of rules applies, re-opening portsKeep one firewall per role and review attached firewalls

Narrowing outbound traffic

Most WordPress sites should keep the default outbound rules. A course site calls payment gateway APIs, email APIs, plugin update servers and the H5P or LMS licence servers, and the destinations change. If you must narrow outbound traffic, keep TCP 443 and 80 to all destinations, add TCP 2525 if you send SMTP on that port, and keep TCP to 169.254.169.254 for the Droplet agent. DigitalOcean's metrics agent documentation does not list the endpoints the agent reports to, so check that monitoring graphs keep updating after any outbound change.

Name resolution is the other casualty: with no outbound rules at all, the Droplet cannot reach its DNS resolvers either. Test with a fresh DNS lookup and an apt update after every change.

Apply it by tag and verify

  • Tag the WordPress Droplet (for example wordpress-prod) at creation so the firewall applies from the first boot; tags avoid the 10-Droplet-per-firewall limit.
  • Before tightening SSH, set a password and confirm you can log in to the Recovery Console.
  • Attach the firewall by tag, then from another network run nc -vz your-ip 443 and nc -vz your-ip 22 to check what is open.
  • Load the site over HTTPS and run a test checkout and email send from WordPress.
  • If you also run ufw (PMPro's self-managed guide, for example, allows OpenSSH and Apache Full), keep its ports the same as the Cloud Firewall.
  • Remember a load balancer cannot carry a Cloud Firewall; protect the Droplets behind it instead.

Questions before you decide

Do DigitalOcean Cloud Firewalls cost extra?

No. DigitalOcean says Cloud Firewalls are provided at no additional cost.

What rules does a new Cloud Firewall start with?

An inbound rule allowing SSH on port 22 from anywhere and outbound rules permitting all traffic to any destination on any port.

Can I still use the Droplet Console if I restrict SSH?

Only if the firewall still accepts SSH on the sshd port from the console. DigitalOcean lists no console IPs, so keep Recovery Console password access as the fallback.

Should I also run ufw on the Droplet?

You can, but DigitalOcean warns that Cloud Firewall rules and software firewall rules must not conflict, so open the same ports in both.

Sources & verification

Product details and prices can change. Check the linked provider before buying.

  1. DigitalOcean Docs: Cloud Firewalls Accessed 30 Oct 2026
  2. DigitalOcean Docs: Cloud Firewall limits Accessed 30 Oct 2026
  3. DigitalOcean Docs: Create a Cloud Firewall Accessed 30 Oct 2026
  4. DigitalOcean Docs: Configure firewall rules Accessed 30 Oct 2026
  5. DigitalOcean Docs: Connect with the Droplet Console Accessed 30 Oct 2026
  6. DigitalOcean Docs: Install the metrics agent Accessed 30 Oct 2026
  7. Paid Memberships Pro: High-performance hosting setup guide Accessed 30 Oct 2026

Sources link directly to providers. Product buttons may use separately labeled affiliate links. Read our disclosure.

Your decision at a glance

Compare the options

Full comparison

Documentation-based guidance. No tested ranking or performance score.

Cloud VMs

DigitalOcean

Consider it for
Use a DigitalOcean Droplet when you will administer a cloud VM, not when you need managed WordPress hosting.
Starting cost
Basic Droplet listed from $4.00/mo (512 MiB, 1 vCPU, 10 GiB SSD, 500 GiB transfer) on 2026-09-15; 3 static sites listed free. Confirm live checkout and bandwidth overage.
Before you choose
A listed VM size is not a WordPress or course-capacity claim. You own OS, updates, backups, and mail unless a separate product says otherwise. The static-site free tier is not a course site.

Checked 15 Sep 2026 · Pricing source

View DigitalOcean plans

Direct provider link; no affiliate tracking added by this publication. Link disclosure

Shared hosting

SiteGround

Consider it for
Use SiteGround StartUp, advertised at $2.99/month for a prepaid first 12 months then $17.99/month, when one WordPress site needs shared hosting rather than a server you administer.
Starting cost
StartUp first-term $2.99/mo prepaid 12 months, renews $17.99/mo on 2026-09-15 (world page: ex. VAT); 1 website, 10GB, ~10,000 visits marketing estimate
Before you choose
Visit marketing estimates are not class concurrency. Renewal is $17.99/mo after the prepaid term. No course-capacity test is claimed.

Checked 15 Sep 2026 · Pricing source

View SiteGround plans

Affiliate link: we may earn a commission on an eligible purchase. Link disclosure