Description

This check ensures that every Linode Cloud Firewall is in the enabled state. A firewall must be enabled for its inbound and outbound policies and rules to filter traffic. A disabled firewall keeps its rules and device assignments but does not filter any traffic. Each firewall is evaluated separately.

Rationale

A disabled firewall leaves all attached Linodes and NodeBalancers without network filtering, so every port and service on them is reachable as if no firewall existed. Firewalls are sometimes disabled temporarily for troubleshooting and then forgotten. Keeping all firewalls enabled ensures the intended protection is active.

Impact

  • Enabling the firewall applies its rules and default policies at once to all attached devices. Review the rules first so that required traffic is not blocked

  • No cost to enable

Default Value

A Cloud Firewall is enabled by default when it is created.

Pre-Requisites

  • A Cloud Manager user with read/write access to the firewall

  • For the CLI test plan: a Personal Access Token created by an unrestricted user with Firewalls: Read Only scope

Remediation

Test Plan

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Networking, click Firewalls.

  3. Check the Status column. Any firewall that is not Enabled fails.

CLI:

Set the token:

export LINODE_TOKEN="<your-personal-access-token>"

List every firewall with its status:

curl -s -H "Authorization: Bearer $LINODE_TOKEN" "https://api.linode.com/v4/networking/firewalls?page_size=500" | jq '.data[] | {id, label, status}'

A firewall passes if status is "enabled" and fails for any other value (for example "disabled").

Implementation Steps

Console:

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Networking, click Firewalls and select the firewall that failed the check.

  3. On the Rules page, review the rules and default policies, and confirm they allow the traffic the attached devices need.

  4. Go back to the Firewalls list.

  5. Click Enable next to the firewall. The Status column changes to Enabled.

  6. Repeat for each firewall that failed the check.

Backout Plan

  1. Sign in to Cloud Manager at https://cloud.linode.com.

  2. In the sidebar, under Networking, click Firewalls.

  3. Click Disable next to the firewall.

Note: a disabled firewall no longer filters any traffic for its devices.

Reference