Skip to main content

V1 Load Balancer Firewall

Alpha

This feature is currently in its alpha release.

The v1 load balancer supports web application firewall configurations. Currently this allows for users to restrict or grant access by IP, but will soon also include geographic and url based restrictions as well as http method and header type controls.

The controller must be set to Enable Custom Config for the firewall config to be applied.

After enabling the Firewall Configuration, the user sees an example Rule entry.

Firewall Rule Fields

Each Rule is comprised of 4 fields

FieldDescription
descriptionA text description of the rule, providing context or notes about what the rule is intended to do.
skipA boolean value indicating whether the rule should be skipped (true) or processed (false).
typeSpecifies the action of the rule. Typical values might include "deny" or "allow".
conditionsAn array of conditions that must be met for the rule to apply. Each condition contains:
- type: The type of match to perform (e.g., "ip-match").
- operator: The comparison operator to use (e.g., "==").
- value: The value to compare against (e.g., an IP address). For IP addresses, both addresses and CIDR's are supported.

Supported Types

The currently supported types are:

  • ip-match

Supported Operators

The currently supported operators are:

  • ==
  • !=

Example Firewall Configs

[
{
"description": "allow all traffic",
"skip": false,
"type": "allow",
"conditions": [
{
"type": "ip-match",
"operator": "==",
"value": "0.0.0.0/0"
},
{
"type": "ip-match",
"operator": "==",
"value": "::/0"
}
]
}
]
[
{
"description": "This is a rule",
"skip": false,
"type": "deny",
"conditions": [
{
"type": "ip-match",
"operator": "==",
"value": "50.234.222.10"
},
{
"type": "ip-match",
"operator": "==",
"value": "2600:6b4a:223f:93cf:84a1:4afd:9221:8988"
}
]
}
]