๐Ÿšง Firewalls

Get All

Returns a paginated list of accessible Firewalls.

LinodeClient linodeClient = new LinodeClient("apikey");

// Get All
List<Firewall> list = await linodeClient.Firewall.Get();

Get One

Get a specific Firewall resource by its ID. The Firewallโ€™s Devices will not be returned in the response. Instead, use the List Firewall Devices endpoint to review them.

LinodeClient linodeClient = new LinodeClient("apikey");

long firewallId = 109478;

// Get One
Firewall firewall = await linodeClient.Firewall.Get(firewallId);

Create

Creates a Firewall to filter network traffic.

  • Use the rules property to create inbound and outbound access rules.

  • Use the devices property to assign the Firewall to a service and apply its Rules to the device. Requires read_write Userโ€™s Grants to the device. Currently, Firewalls can only be assigned to Linode instances.

  • A Firewall can be assigned to multiple Linode instances at a time.

  • A Linode instance can have one active, assigned Firewall at a time. Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.

  • Firewalls apply to all of a Linodeโ€™s non-vlan purpose Configuration Profile Interfaces.

  • Assigned Linodes must not have any ongoing live migrations.

  • A firewall_create Event is generated when this endpoint returns successfully.

Update

Updates information for a Firewall.

  • Assigned Linodes must not have any ongoing live migrations.

  • If a Firewallโ€™s status is changed with this endpoint, a corresponding firewall_enable or firewall_disable Event will be generated.

Some parts of a Firewallโ€™s configuration cannot be manipulated by this endpoint:

  • A Firewallโ€™s Devices cannot be set with this endpoint. Instead, use the Create Firewall Device and Delete Firewall Device endpoints to assign and remove this Firewall from Linode services.

  • A Firewallโ€™s Rules cannot be changed with this endpoint. Instead, use the Update Firewall Rules endpoint to update your Rules.

  • A Firewallโ€™s status can be set to enabled or disabled by this endpoint, but it cannot be set to deleted. Instead, use the Delete Firewall endpoint to delete a Firewall.

Delete

Delete a Firewall resource by its ID. This will remove all of the Firewallโ€™s Rules from any Linode services that the Firewall was assigned to.

  • Assigned Linodes must not have any ongoing live migrations.

  • A firewall_delete Event is generated when this endpoint returns successfully.

Rules List

Rules Update

Updates the inbound and outbound Rules for a Firewall.

  • Assigned Linodes must not have any ongoing live migrations.

  • Note: This command replaces all of a Firewallโ€™s inbound and outbound rulesets with the values specified in your request.

Devices List

Returns a paginated list of a Firewallโ€™s Devices. A Firewall Device assigns a Firewall to a Linode service (referred to as the Deviceโ€™s entity). Currently, only Devices with an entity of type linode are accepted.

Device View

Returns information for a Firewall Device, which assigns a Firewall to a Linode service (referred to as the Deviceโ€™s entity). Currently, only Devices with an entity of type linode are accepted.

Device Create

Creates a Firewall Device, which assigns a Firewall to a service (referred to as the Deviceโ€™s entity) and applies the Firewallโ€™s Rules to the device.

  • Currently, only Devices with an entity of type linode are accepted.

  • A Firewall can be assigned to multiple Linode instances at a time.

  • A Linode instance can have one active, assigned Firewall at a time. Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.

  • Assigned Linodes must not have any ongoing live migrations.

  • A firewall_device_add Event is generated when the Firewall Device is added successfully.

Device Delete

Removes a Firewall Device, which removes a Firewall from the Linode service it was assigned to by the Device. This will remove all of the Firewallโ€™s Rules from the Linode service. If any other Firewalls have been assigned to the Linode service, then those Rules will remain in effect.

  • Assigned Linodes must not have any ongoing live migrations.

  • A firewall_device_remove Event is generated when the Firewall Device is removed successfully.

JSON

Last updated

Was this helpful?