Firewall & Rate Limits

Firewall Policies (ACL)

Separate from Traffic Policy rules, the Firewall provides an access control list (ACL) system with condition-based matching. Configure in the dashboard under Firewall → Firewall Policy.

How Firewall Policies Work

Each policy evaluates incoming requests against a set of conditions. If all conditions match, the policy's action is applied:

  • Allow — Permit the request through
  • Block — Reject the request with a 403

Policies are evaluated in priority order. Each policy can be enabled/disabled independently.

Condition Types

TypeMatchesExample
source_ipClient IP address or CIDR192.168.1.0/24
countryGeoIP country codeUS, DE
pathRequest URL path/admin/*
methodHTTP methodPOST
headerRequest header valueX-Forwarded-For
cookieCookie valuesession
browserBrowser name (from User-Agent)Chrome
user_agentRaw User-Agent stringMozilla/5.0...
hostRequest host/endpointapi.example.com
protocolRequest protocolHTTP/1.1
portDestination port8080

Operators

Each condition uses an operator to match values:

OperatorDescription
equalsExact match
not_equalsDoes not match
containsValue contains substring
starts_withValue starts with
ends_withValue ends with
regexMatches regex pattern
existsHeader/cookie exists (no value needed)
not_existsHeader/cookie does not exist

Conditions can be combined with AND or OR logical operators.

AI-Generated Policies

Use the AI Magic Wand button when creating or editing a firewall policy to generate rules from a natural language description. For example: "Block all traffic from China targeting the /admin path, but allow my office IP 1.2.3.4".

Rate Limits

Separate from the Traffic Policy rate-limit rule, the Firewall Rate Limits page provides per-endpoint rate limiting with IP-specific rules. Configure in the dashboard under Firewall → Rate Limits.

Creating Rules

FieldDescription
NameDescriptive rule name
EndpointTarget endpoint
Source IPsIP addresses or CIDR ranges (supports IPv4/IPv6). Tag-based input.
Requests per WindowMax requests allowed (1–1,000,000)
Window Size1 min, 5 min, 15 min, 1 hour, 6 hours, 12 hours, 1 day, 7 days, 30 days
Actionblock or throttle
PriorityEvaluation order (0–999)
Iris