# Ensure Linode Cloud Firewalls are assigned to at least one device

- Source: https://support.icompaas.com/support/solutions/articles/a_1795612582814787-ensure-linode-cloud-firewalls-are-assigned-to-at-least-one-device
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Linode Cloud](https://support.icompaas.com/support/solutions/c_1795612201673188) › [Linode Checks](https://support.icompaas.com/support/solutions/folders/f_1795612218858606)
- Last updated: 2026-11-25
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Description**

This check ensures that every Linode Cloud Firewall is attached to at least one device, such as a Linode or a NodeBalancer. A firewall only filters traffic for the resources it is assigned to, so a firewall with no devices provides no protection. Each firewall is evaluated separately.

**Rationale**

An unassigned firewall gives a false sense of security: its rules exist, but no traffic passes through it. Often the Linodes that were meant to be protected are left exposed to the internet. Unused firewalls also make the firewall list harder to review and maintain.

**Impact**

-   Attaching a firewall to a Linode immediately applies its rules and default policies to that Linode. Review the rules first so that required traffic (for example SSH, HTTP or HTTPS) is not blocked
    
-   Only inbound rules apply to NodeBalancers; outbound rules do not
    
-   If the firewall is not needed, deleting it is also a valid fix
    

**Default Value**

When a Cloud Firewall is created, attaching Linodes and NodeBalancers is optional, so a firewall can exist with no devices. Default firewalls for new Linodes can be set in **Administration** > **Account Settings** > **Default Firewalls**.

**Pre-Requisites**

-   A Cloud Manager user with read/write access to the firewall and to the Linodes or NodeBalancers being attached
    
-   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](https://cloud.linode.com/).
    
2.  In the sidebar, under **Networking**, click **Firewalls** and select the firewall.
    
3.  Click the **Linodes** tab, then the **NodeBalancers** tab.
    
4.  If both tabs are empty, the firewall is not assigned to any device.
    
5.  Repeat for each firewall.
    

**CLI:**

Set the token:

export LINODE\_TOKEN="<your-personal-access-token>"

List every firewall with the number of devices attached to it:

for id in $(curl -s -H "Authorization: Bearer $LINODE\_TOKEN" "https://api.linode.com/v4/networking/firewalls?page\_size=500" | jq -r '.data\[\].id'); do  
curl -s -H "Authorization: Bearer $LINODE\_TOKEN" "https://api.linode.com/v4/networking/firewalls/$id/devices" | jq --arg id "$id" '{firewall\_id: $id, devices\_count: .results, devices: \[.data\[\].entity.label\]}'  
done

A firewall passes if devices\_count is 1 or more and fails if it is 0.

**Implementation Steps**

**Console:**

1.  Sign in to Cloud Manager at [https://cloud.linode.com](https://cloud.linode.com/).
    
2.  In the sidebar, under **Networking**, click **Firewalls** and select the firewall that failed the check.
    
3.  Review the rules on the **Rules** page and confirm they allow the traffic the device needs.
    
4.  Click the **Linodes** tab (or the **NodeBalancers** tab).
    
5.  Click **Add Linodes to Firewall** (or **Add NodeBalancers to Firewall**).
    
6.  Select the Linode or NodeBalancer from the dropdown. If an interface dropdown is shown, select the interface to protect.
    
7.  Click **Add**.
    
8.  If the firewall is not needed, delete it instead of attaching it.
    
9.  Repeat for each firewall that failed the check.
    

**Backout Plan**

1.  Sign in to Cloud Manager at [https://cloud.linode.com](https://cloud.linode.com/).
    
2.  In the sidebar, under **Networking**, click **Firewalls** and select the firewall.
    
3.  Click the **Linodes** tab (or the **NodeBalancers** tab).
    
4.  Click **Remove** next to the device that was added.
    

**Reference**

-   [https://techdocs.akamai.com/cloud-computing/docs/apply-firewall-rules-to-a-service](https://techdocs.akamai.com/cloud-computing/docs/apply-firewall-rules-to-a-service)
    
-   [https://techdocs.akamai.com/cloud-computing/docs/create-a-cloud-firewall](https://techdocs.akamai.com/cloud-computing/docs/create-a-cloud-firewall)
    
-   [https://techdocs.akamai.com/cloud-computing/docs/select-default-firewalls-for-new-linodes](https://techdocs.akamai.com/cloud-computing/docs/select-default-firewalls-for-new-linodes)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
