🪴 Zero's Garden

Home

❯

notes

❯

NGINX

❯

NGINX IPv6 Rate Limiting

NGINX IPv6 Rate Limiting

May 12, 20251 min read

Use with realip module.

map $binary_remote_addr $subnet {
    "~^(\C{8})"         $1;
    default             $binary_remote_addr;
}

limit_req_zone $subnet zone=one:10m rate=1r/s;

References

  • https://mailman.nginx.org/pipermail/nginx/2021-April/060557.html

Graph View

Backlinks

  • NGINX Map

Created with Quartz v4.5.0 © 2025

  • GitHub
  • Sponsor me