hozaifaaoud opened a new issue #4374: URL: https://github.com/apache/apisix/issues/4374
### Issue description ### Environment Request help without environment information will be ignored or closed. apisix version (cmd: apisix version): 2.5 OS (cmd: uname -a): 60-Ubuntu SMP Tue Jul 2 18:22:20 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux OpenResty / Nginx version (cmd: nginx -V or openresty -V): nginx version: openresty/1.19.3.1 etcd version, if have (cmd: run curl http://127.0.0.1:9090/v1/server_info to get the info from server-info API): "3.4.0" apisix-dashboard version, if have: luarocks version, if the issue is about installation (cmd: luarocks --version): 3.4.0 I use the ip-restriction plugin to limit the routes to specific IPs. I use Cloudflare to receive the consumer request then forward it to APISIX on my infrastructure. Cloudflare proxies all requests. Apisix is receiving the request from Cloudflare on behalf of the original client. Cloudflare sends the requesting IP in these headers "CF-Connecting-IP" or "True-Client-IP". So the ip-restriction plugin reads Cloudflare IP not the consumer IP ... I need to configure Ithe ip-restriction plugin so that it reads the consumer IP from these headers "CF-Connecting-IP" or "True-Client-IP". -- 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. For queries about this service, please contact Infrastructure at: [email protected]
