Update default firewalls

Beta 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.

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...
account:read_write
Learn more...
Path Params
string
required

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

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