AlgoViz

Load balancer security

medium 26 min

A load balancer is the front gate of a system.

Where it shows up

The same pattern appears across everyday software.

  • AWS WAF

    Rules can allow, block or count, and can use CAPTCHA puzzles or silent challenges. Count does not decide the request: later rules still run.

  • AWS Shield

    Its documentation separates network attacks at layer 3, protocol attacks such as SYN floods at layer 4, and web request floods at layer 7.

  • OWASP CRS

    A free, open-source rule collection for ModSecurity and compatible firewalls.

  • Google, 2023

    Reported an HTTP/2 flood above 398 million requests per second, largely stopped at the edge of its network by its global load balancing.

  • Cloudflare, 2014

    Reported a flood just under 400 gigabits per second that abused open time servers. No single site's link would hold that.

  • NGINX

    limit_req uses a leaky bucket, and the realip module takes the client address from a header only when the connection comes from addresses you list.