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

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
Body Params

Update default firewalls for Linodes that use legacy configuration profiles, Linode interfaces, and NodeBalancers. For Linodes using Linode interfaces, firewalls need to be assigned to Linode interfaces and not the Linode.

default_firewall_ids
object

The default firewall ID for a linode, nodebalancer, public_interface, or vpc_interface. Default firewalls can't be deleted or disabled.

Responses

Response body
object
default_firewall_ids
object

The default firewall ID for a linode, nodebalancer, public_interface, or vpc_interface. Default firewalls can't be deleted or disabled.

integer

The Linode's default firewall.

integer

The NodeBalancer's default firewall.

integer

The public interface's default firewall.

integer

The VPC interface's default firewall.

Language
Credentials
Original text
Rate this translation
Your feedback will be used to help improve Google Translate