Re: limit_req is not working with dynamically extracted user address

2016-03-19 Thread malish8632
Hi Maxim, thank you for quick response. > How did you found that limit_req uses a wrong element? We don't know if this is limit_req - in reality we were just looking into logs and I guess that's what confused us. We observed those IPs and rolled back the changes as we assumed that all requests fr

Re: limit_req is not working with dynamically extracted user address

2016-03-19 Thread Maxim Dounin
Hello! On Fri, Mar 18, 2016 at 09:45:58AM -0400, malish8632 wrote: > Hi, if our HTTP block looks like below where we find IP from X-Forwarded-For > using perl module it looks like zone and limit_req are not using correct > variable $user_real_ip or it is reset right after logging. > > The nginx_

Re: limit_req is not working with dynamically extracted user address

2016-03-18 Thread Maxim Dounin
Hello! On Fri, Mar 18, 2016 at 10:48:56AM -0400, malish8632 wrote: > > How did you found that limit_req uses a wrong element? > > We don't know if this is limit_req - in reality we were just looking into > logs and I guess that's what confused us. We observed those IPs and rolled > back the chan

limit_req is not working with dynamically extracted user address

2016-03-18 Thread malish8632
Hi, if our HTTP block looks like below where we find IP from X-Forwarded-For using perl module it looks like zone and limit_req are not using correct variable $user_real_ip or it is reset right after logging. The nginx_access_log shows the first logged field correctly as $user_real_ip - which is f