Update default firewalls

You can update or add a default firewall to:

  • Linodes using legacy config profile interfaces

  • Linode VPC interfaces and Linode public interfaces

  • NodeBalancers

If a firewall isn't provided during service creation, a default firewall is assigned, unless you have opted out of firewall protection.

📘

Default firewalls on Linodes with Linode interfaces are applied to the interfaces, not the Linode itself.

Default firewalls on Linodes with legacy configuration profile interfaces are applied directly to the Linode, not its interfaces.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Permissions: update_default_firewalls
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: account:read_write

CLI

linode-cli firewalls firewall-settings-update \
  --default_firewall_ids.vpc_interface 1 \
  --default_firewall_ids.public_interface 2 \
  --default_firewall_ids.nodebalancer 3 \
  --default_firewall_ids.linode 5

Learn more

Language
Credentials