Apache logs still showing Cloudflare IP with mod_remoteip enabled

https://support.cloudflare.com/hc/en-us/articles/200170786 (the guide’s IPV4 list is a bit out of date, and I replaced the deleted entry with the two new ones)

I’ve followed the guide above to the letter, even changing my LogFormat %h entries to %a, and Apache still logs the same IP with either used. I’m unsure what additional steps to take here. conf-enabled shows remoteip.conf up and running, the mod is installed, apache2ctl shows config is okay, I really don’t know.

EDIT:
Turns out the solution was to add the ip/subnet given by ip a | grep eth0 within WSL to remoteip.conf. In order to get WSL Apache online, you need to portproxy windows pointing to your linux address, and this ip/subnet should be a RemoteIPTrustedProxy.

Ah, I see. We haven’t bugged @kody in a while. This should be the icing on his week:

https://support.cloudflare.com/hc/en-us/articles/200170786 vs https://www.cloudflare.com/ips-v4

(if only these lists were sorted numerically like cloudflare.com/ips is)

1 Like

Okay, those should be updated. I tried to keep it actually a bit more generic so this problem won’t just happen in the future.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.