Add Cloudflare (#8)

Signed-off-by: Gavin D. Howard <gavin@gavinhoward.com>
This commit is contained in:
Gavin D. Howard
2024-01-04 15:15:17 -07:00
committed by GitHub
parent 1618da81d5
commit 343b3ed25b
10 changed files with 111 additions and 3 deletions

17
cloudflare/downloader.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
# https://www.cloudflare.com/ips/
set -euo pipefail
set -x
# get from public ranges
curl -s https://www.cloudflare.com/ips-v4/ > /tmp/cf-ipv4.txt
curl -s https://www.cloudflare.com/ips-v6/ > /tmp/cf-ipv6.txt
# sort & uniq
sort -V /tmp/cf-ipv4.txt | uniq > cloudflare/ipv4.txt
sort -V /tmp/cf-ipv6.txt | uniq > cloudflare/ipv6.txt

15
cloudflare/ipv4.txt Normal file
View File

@@ -0,0 +1,15 @@
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
104.16.0.0/13
104.24.0.0/14
108.162.192.0/18
131.0.72.0/22
141.101.64.0/18
162.158.0.0/15
172.64.0.0/13
173.245.48.0/20
188.114.96.0/20
190.93.240.0/20
197.234.240.0/22
198.41.128.0/17

View File

@@ -0,0 +1,15 @@
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
104.16.0.0/13
104.24.0.0/14
108.162.192.0/18
131.0.72.0/22
141.101.64.0/18
162.158.0.0/15
172.64.0.0/13
173.245.48.0/20
188.114.96.0/20
190.93.240.0/20
197.234.240.0/22
198.41.128.0/17

7
cloudflare/ipv6.txt Normal file
View File

@@ -0,0 +1,7 @@
2a06:98c0::/29
2c0f:f248::/32
2400:cb00::/32
2405:8100::/32
2405:b500::/32
2606:4700::/32
2803:f800::/32

View File

@@ -0,0 +1,7 @@
2400:cb00::/32
2405:8100::/32
2405:b500::/32
2606:4700::/32
2803:f800::/32
2a06:98c0::/29
2c0f:f248::/32