Skip to content

Per-IP rate-limiter needs subnet-level reasoning #1270

Closed

Description

@jpds

Not a Sōzu user, I just read through your new release notes and the code for the per-IP rate-limiter and noticed that this has no concept of subnet-level restrictions.

Thus, if I'm on a IPv6 /64 - I can bypass this functionality completely by simply using a new IPv6 address for every connection.

The rate-limiter requires ipv4_prefix and ipv6_prefix options to be effective.

Activity

  1. FlorentinDUBOIS commented on May 27, 2026

    @FlorentinDUBOIS
    Collaborator

    Hello @jpds, thanks you for your feedback, it is really interesting, I think I will introduce this in sozu, not sure for the default subnet to use in ipv4 and ipv6, maybe /24 and /64 as you said.

  2. jpds commented on May 27, 2026

    @jpds
    ContributorAuthor

    For the Caddy module for this, I just left the default at single IPs, whilst highly recommending in the docs that people configure /24 and /56.

  3. FlorentinDUBOIS commented on Jun 1, 2026

    @FlorentinDUBOIS
    Collaborator

    I think we need both as the current rate limit is for handling rate limit by ip as an api gateway, and the subnet aware will be there for ddos purposes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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