Update firewall rules

Updates the inbound and outbound rules for a firewall.

  • Assigned Linodes must not have any ongoing live migrations.

  • This operation replaces all of a firewall's inbound and outbound rules with the values specified in your request.

linode-cli firewalls rules-update 123 \
  --inbound '[{"action":"ACCEPT", "protocol": "TCP", "ports": "22, 80, 8080, 443", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"], "ipv6": ["2001:DB8::/128"]}}]' \
  --outbound '[{"action":"DROP","protocol": "TCP", "ports": "49152-65535", "addresses": {"ipv4": ["192.0.2.0/24", "198.51.100.2/32"], "ipv6": ["2001:DB8::/128`"]}}]'

<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
firewall:read_write

<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>
Path Params
string
enum
required

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

Allowed:
integer
required

ID of the Firewall to access.

Body Params

The Firewall Rules information to update.

inbound
array

The inbound firewall rules or Rule Sets. Each firewall rule can reference a Rule Set or specify its own parameters, but not both.

inbound
outbound
array

The outbound firewall rules or Rule Sets. Each firewall rule can reference a Rule Set or specify its own parameters, but not both.

outbound
string
enum

The default behavior for inbound traffic. This setting can be overridden by updating the inbound.action property of the Firewall Rule.

Allowed:
string
enum

The default behavior for outbound traffic. This setting can be overridden by updating the outbound.action property of the Firewall Rule.

Allowed:
Responses

Language
Credentials
Response
Choose an example:
application/json