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.
Server Setup
ALB --> Traefik --> Nodejs
Note: Traefik does receive the user's IP in the X-Forwarded-For header.
Hello @numToStr and @cakiwi , it seems there is some confusion on how the source criterion works because it's properties should be mutually exclusive and you should see an error during the middleware creation phase like:
"iPStrategy and RequestHost are mutually exclusive"
I don't think that's the issue as I also checked with only ipStrategy in the yaml config but the rate limiter still blocking the requests from different IPs.