I am trying to whitelist a vendor IP in our Apache config but we are behind CloudFlare.
Per CloudFlare's and Apache's docs, I have done this in the config:
RemoteIPHeader CF-Connecting-IP # From: https://www.cloudflare.com/ips-v4 RemoteIPTrustedProxyList /path/to/cloudflare/ipv4.txt # From: https://www.cloudflare.com/ips-v6 RemoteIPTrustedProxyList /path/to/cloudflare/ipv6.txt # Switch from %h to %a per the CloudFlare docs LogFormat "%a %l %u %t \"%r\" %>s %b" common Before CloudFlare, I could do this:
# Trusted vendor IP SetEnvIf Remote_Addr ^55\.55\.55\.55$ TRUSTED_REQUEST What is the best way of accessing the CF-Connecting-IP while obeying the trusted proxy lists?