kevinw66 opened a new issue, #7137:
URL: https://github.com/apache/apisix/issues/7137

   ### Current Behavior
   
   According to the current logic in real-ip plugin.
   When I set source to http_x_forwarded_for. It will get last ip on the 
`X-Forwarded-For` header list.
   But after search for some document, the first ip in the list is client ip, 
others maybe the proxy ip.
   
   When I enable both real_ip plugin and set route rule to chash(or others like 
limit-req), it will always hashed by proxy ip, I think this is wrong behavior.
   And there are more problem when using Aliyun SLB, Apisix will always get 
SLB's ip, which is managed by a pool and always different.
   
   I don't know if this is a bug or I use it wrong.
   
   ### Expected Behavior
   
   _No response_
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   。
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to