Skip to content

Access control ​

Symptoms with access rules, rate limits, exceptions, automatic bans and staged rules.

An access rule, rate limit or exception is refused ​

  • Symptom: Preview changes (on the Access and rate limits page) or waap rules set answers with a field, for example access.rules[1].when.ip_lists[0]: unknown list "office".
  • Cause and fix, by message:
    • unknown list: the address list is not defined. Define it under ip_lists (see Address lists); the form's help lists the defined ones.
    • requires geoip.database: country conditions need the GeoIP database.
    • expr: the CEL expression does not compile; the message shows where.
    • ban_for required for ban or only allowed with action ban: set it only with action ban.
    • skip only allowed with action trust: set it only with action trust.
    • duplicate rule name: names are unique per list.
    • ignore_rules: a rule is an ID, a range such as 942000-942999, or an api.* or bot.* name.
    • ban needs by: client: a ban is for an address.
  • Nothing is applied until the preview succeeds.

Automatic bans, staging or tracing cannot be turned on ​

  • Symptom: policy.bans.within: must be between 1s and 24h0m0s after setting only "Ban after"; or policy.trace.until ... is more than 24h ahead; or staged rules refused with "a date is required".
  • Cause: automatic bans need all three settings (after, within and for); a trace must end within 24 hours; staged rules need rules and an end time.
  • Fix: fill the other fields of the group in the same change. Give times as RFC 3339 or as a duration from now (2h). To turn them off, use "Use default" on every field of the group (or KEY= in waap apps set). Removing the staged rules or the trace clients and paths removes the whole section.

An access rule does not apply where expected ​

  • Symptom: a request passes, or is refused, although a later rule should decide.
  • Cause: access rules are checked in order and the first match decides, so a broad rule above (for example a trust rule for an office network) wins. In detect mode (the application mode or the "Access rule mode") block and ban rules only log.
  • Check: the event's trace (or a trace rule for allowed requests) names the matching rule. The rule order is the list order on the Access rules tab or in waap rules get.
  • Fix: move the narrower rule up ("Move up"), then preview and apply.