# Rate limiting plugin is not working as expected with nginx as load balancer

**URL:** <https://discuss.konghq.com/t/rate-limiting-plugin-is-not-working-as-expected-with-nginx-as-load-balancer/7029>\
**Category:** General\
**Created:** [September 2, 2020, 8:01am UTC](https://discuss.konghq.com/t/rate-limiting-plugin-is-not-working-as-expected-with-nginx-as-load-balancer/7029 "2020-09-02T08:01:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sraravet](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/sraravet/32/1504_2.png) [@sraravet](https://discuss.konghq.com/u/sraravet)\
**Post date:** [September 2, 2020, 8:01am UTC](https://discuss.konghq.com/t/rate-limiting-plugin-is-not-working-as-expected-with-nginx-as-load-balancer/7029/1 "2020-09-02T08:01:03Z")

</div>

hi ,

i am using kong 2.0.1 DB less version. And recently i applied ratelimiting plugin on my upstream services.  
below is i have done

1. enabled plugin for each service( ex: one service - 4 Requests per minute)
2. setup a load balancer(nginx) to verify with different client\_ip’s.
3. whn i try to access my environment with load balancer with 2 client\_ip’s every time " **kong.client.get\_forwarded\_ip()** is getting remote address. so we can not able to verify with 2 client ip’s.

what i am expecting is with 2 clinet ip’s per minute each ip should get 4 RPM. that is not happening.  
anything i am missing in my configuration?  
Please help here.

this is my configuration

- name: rate-limiting  
config:  
minute: 4  
policy: local  
hour: 100000  
limit\_by: service
