brandan
CDCloudflare Developers
•Created by brandan on 11/7/2023 in #general-help
CF-Connecting-IP and X-Forwarded-For headers are Cloudflare IPs
I have a custom nginx access log format for a site that logs $http_cf_connecting_ip. When I make a request to this site, the IP logged is 254.253.225.218, a so-called bogon IP address. When I look at the X-Forwarded-For header of the same requests, I can see 254.253.225.218, 172.71.190.95. 172.71.190.95 is a Cloudflare IP from AS13335.
The rest of the Cloudflare headers such as Cf-Postal-Code, Cf-Ipcountry, etc. appear to be as correct as they can be.
Does anybody know why Cf-Connecting-Ip is totally wrong?
10 replies