Updating server to use IPv6
After I began using Cloudflare, I've had problem after problem. It looks like a lot of it hails back to the issue that my server reads IPs in IPv4, but the only way that I can identify users through Cloudflare is to use mod_remoteip to make the system read CF_CONNECTING_IP instead of REMOTE_ADDR.
Which is all fine and dandy, except that CF_CONNECTING_IP is (almost always) sending IPv6.
I have over 100 IPv4 IPs and ranges whitelisted in cPHulk and CSF, and I have no idea how I could even begin to change them to IPv6.
Any suggestions on how to manage this process?
-
A little confused by your post. Is your server configured to accept IPV6? Are you trying to whitelist CloudFlare IP's? 0 -
Is your server configured to accept IPV6? I have no idea. How do I know? Are you trying to whitelist CloudFlare IP's? No, that was the easy part! LOL The problem I'm having is that, while using Cloudflare, REMOTE_ADDR always comes in with a Cloudflare IP instead of the user's IP. I've discovered that I can use mod_remoteip to make the server use XFF or CF_CONNECTING_IP instead of REMOTE_ADDR, but these come in as IPv6 instead of IPv4. So the questions are: 1. how do I modify the server to accept IPv6; and 2. convert the IPv4 addresses that are already whitelisted / blacklisted in cPHulk and CSF to the new IPv6? 0
Please sign in to leave a comment.
Comments
2 comments