Differences

This shows you the differences between two versions of the page.

Link to this comparison view

guides:cloudflare_ipv4_to_ipv6 [2014/07/20 23:53] (current)
Line 1: Line 1:
 +I realized soon after signing up that the HA Proxy IPv4 NAT'​ing that LES uses would require a ticket for each domain/​subdomain I wanted to add, which means bugging Anthony to setup each new record. So I went looking for a better way to do things.
  
 +Each LowEndSpirit box gets 5 IPv6 addresses but we want an IPv4 for serving our websites, as most people don't have IPv6 at home yet.
 +
 +I found out that Cloudflare actually runs a free IPv6 to IPv4 (and vice-versa) proxy with their service. Cloudflare'​s CDN normally works on a reverse proxy (you publicly see a Cloudflare IP for your site, while it proxies your actual IP to load your site).
 +
 +**//​Steps//​**:​\\
 +\_\_ **1.)** Signup for a free account at Cloudflare.com and add your domain (you can add as many as you want)\\
 +\_\_ **2.)** Update your domain'​s name servers at your registrar to the ones Cloudflare supplies (<​name>​.ns.cloudflare.com)\\
 +\_\_ **3.**) Edit your Cloudflare DNS records, create & point your domain/​subdomain'​s quad-A (AAAA) record to one of your LES IPv6 Addresses (see your welcome email with your VPS info)\\
 +{{:​guides:​idprhpa.png?​direct}}\\
 +\_\_ **4.)** Make sure you have "​Cloudflare On" for the domain/​subdomain record you just setup (make sure the little cloud icon is orange next to the record)\\
 +{{:​guides:​1mpyack.png?​direct}}\\
 +
 +__Updated thanks to dimitrisp & Nyr__\\
 +\_\_ **5.)** Head into your "​Cloudflare Settings"​ for your domain - select the gear icon next to your domain in the main domain list\\
 +{{:​guides:​7vb5wtu.png?​direct}}\\
 +\_\_ **6.)** Scroll down and under '​Automatic IPv6' change the default mode '​Safe'​ to '​Full'​\\
 +{{:​guides:​vzawh8y.png?​direct}}\\
 +\_\_ **7.)** Modify your web server to listen on the IPv6 address you used above, on port 80 of course\\
 +\_\_ **8.)** Enjoy some IPv4 goodness without nagging Anthony!\\
 +
 +Bonus:
 +Cloudflare is a CDN which will offload some of your static files (I believe just JS & CSS if I'm not mistaken) and point your website visitors to their closest PoP, making your site load a lot quicker.
 +
 +I'm sure many of you already knew this or have setup a different IPv6->​IPv4 reverse proxy, but hopefully this helps someone out and can make sure a few less tickets get created.
 +
 +You'll still need to know the IPv4 address of your box to SSH in, as Cloudflare won't pass those requests on, but there are a bunch of other threads on how to find that. (Easiest method being: start a console session in your VPS panel, click the '​connection details'​ link and it'll give you the public IP)
 +
 +
 +Post by user mikeyur and the thread is [[http://​forum.lowendspirit.com/​viewtopic.php?​id=441|here]].