So, I was playing with the Rate Limit middleware to figure the best values for it. And, I configured the middleware to look for IP in the
X-Forwarded-For header. I just bombarded the server with thousands of requests via BlazeMeter, which has, let say, IP1. And then I was trying to reach the server with my local machine which has IP2. But I was getting 429 most of the time on my local machine. I don't know what I did wrong or if this is the expected behavior.
ALB --> Traefik --> Nodejs
Note: Traefik does receive the user's IP in the
request-limit: rateLimit: average: 100 burst: 50 period: 1s sourceCriterion: requestHost: true ipStrategy: depth: 1
This thing bugging me for a few days. Any help would be appreciated.