Skip to content

Allowlist for multiple IP ranges published as JSON #1466

@arthurzenika

Description

@arthurzenika

We are trying to develop an allowlist that uses multiple ip ranges published as JSON. The use-case is as follows : we have HTTP requests served by CloudFront which in turn are served by ALB. So the ALB sees as originating IP the CloudFront IPs (eg. 130.176.186.238). Both ALB & CloudFront logs are being processed by CrowdSec so the problematic behaviors are processed with the public IP. We want to avoid banning CloudFront IPs

The file is https://ip-ranges.amazonaws.com/ip-ranges.json

{
  "syncToken": "1757120305",
  "createDate": "2025-09-06-00-58-25",
  "prefixes": [
    {
      "ip_prefix": "3.4.12.4/32",
      "region": "eu-west-1",
      "service": "AMAZON",
      "network_border_group": "eu-west-1"
    },
    {
      "ip_prefix": "3.5.140.0/22",
      "region": "ap-northeast-2",
      "service": "AMAZON",
      "network_border_group": "ap-northeast-2"
    },
[snip]
}

From our understanding, this is done in the enrich parsers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions