Getting original requester IP in logs
I am using DNS in AWS and routing traffic to my ALB on AWS. I have configured logs on ALB to be dumped in S3. Currently the issue is if I am using proxy then the IPs of cloudflare appear in the request IP. How do I get the original IP in the access logs of ALB?
2 Replies
any idea how i can go about doing this?
Here is a doc you may want to check out: https://developers.cloudflare.com/support/troubleshooting/restoring-visitor-ips/restoring-original-visitor-ips/
Cloudflare Docs
Restoring original visitor IPs | Cloudflare Support docs
When your website traffic is routed through the Cloudflare network ↗, we act as a reverse proxy. This allows Cloudflare to speed up page load time by routing packets more efficiently and caching static resources (images, JavaScript, CSS, etc.). As a result, when responding to requests and logging them, your origin server returns a Cloudflare IP ...