Use new Cloudflare URLs for IP address lists
authorMatt Palmer <mpalmer@hezmatt.org>
Wed, 28 Sep 2016 15:03:22 +0000 (01:03 +1000)
committerMatt Palmer <mpalmer@hezmatt.org>
Wed, 28 Sep 2016 15:03:22 +0000 (01:03 +1000)
templates/cloudflare.template.yml

index df8a00d06172de4c7f3ab8cc229b96e757c4de4b..45f29e25a5832608f98a2cf894ee21b25071a502 100644 (file)
@@ -5,8 +5,8 @@ run:
       contents: |
         #!/bin/bash -e
         # Download list of CloudFlare ips
-        wget https://www.cloudflare.com/ips-v4 -O - > /tmp/cloudflare-ips
-        wget https://www.cloudflare.com/ips-v6 -O - >> /tmp/cloudflare-ips
+        wget https://www.cloudflare.com/ips-v4/ -O - > /tmp/cloudflare-ips
+        wget https://www.cloudflare.com/ips-v6/ -O - >> /tmp/cloudflare-ips
         # Make into nginx commands and escape for inclusion into sed append command
         CONTENTS=$(</tmp/cloudflare-ips sed 's/^/set_real_ip_from /' | sed 's/$/;/' | tr '\n' '\\' | sed 's/\\/\\n/g')