Hi guys, I am newbie here because I have a problem with the log of the nginx abouht the remote Real Ip.
My nginx log format is ( nginx with http_realip_module ):
log_format main '$remote_addr - $remote_user [$time_local] “$request” ’
'$status $body_bytes_sent “$http_referer” ’ request_time: '“$request_time” ’ upstream_response_time '“$upstream_response_time” ’
'“$http_user_agent” http_x_forwarded_for: “$http_x_forwarded_for” ’ host: '“$host” ’ http_cf_connecting_ip: '“$http_cf_connecting_ip” ’ ;
then I got a lot logs like:
172.69.33.99 - - [07/Jan/2020:21:09:53 -0500] “GET /xx/ HTTP/1.1” 200 13962 “http://cc.com/xx/” request_time:“0.002” upstream_response_time"0.002" “WordPress/5.3.2; http://cc.com” http_x_forwarded_for: “200.200.200.200” host:“cc.com” http_cf_connecting_ip:“200.200.200.200”
The problem is:
1. is this remote ip “172.69.33.99” from cloudflare? I did not find it from here IP Ranges
---- This is proble is be addressed. It’s in the CF IP list.
- the ip http_x_forwarded_for and http_cf_connecting_ip (200.200.200.200 ) is my hosting IP. I mean my hosting eth0 binded this ip (200.200.200.200). So I can’t believe it’s from my hosting itself. I have reboot and check all the request of my server, so I think there must be something wrong. And I have test, If I open my url from Chrome, the log ip is right. So this log is too too strange. help me. thanks.