Sort AWS CloudFront IPs

This commit is contained in:
2023-07-26 14:01:49 +02:00
parent 99ef798e0c
commit 91060878a6
2 changed files with 75 additions and 75 deletions

View File

@ -1,29 +1,23 @@
108.138.0.0/15
108.156.0.0/14
111.13.171.128/26
111.13.171.192/26
111.13.185.32/27
111.13.185.64/27
116.129.226.0/25
116.129.226.128/26
118.193.97.128/25
118.193.97.64/26
119.147.182.0/25
119.147.182.128/26
120.232.236.0/25
120.232.236.128/26
120.253.240.192/26
120.253.241.160/27
120.253.245.128/26
120.253.245.192/27
120.52.12.64/26
120.52.153.192/26
120.52.22.96/27
120.52.39.128/27
130.176.0.0/17
130.176.128.0/18
130.176.192.0/19
130.176.224.0/20
3.10.17.128/25
3.11.53.0/24
3.29.40.64/26
3.29.40.128/26
3.29.40.192/26
3.29.57.0/26
3.35.130.128/25
3.101.158.0/23
3.128.93.0/24
3.134.215.0/24
3.160.0.0/14
3.231.2.0/25
3.234.232.224/27
3.236.48.0/23
3.236.169.192/26
13.32.0.0/15
13.35.0.0/16
13.48.32.0/24
13.54.63.128/26
13.59.250.0/26
13.113.196.64/26
13.113.203.0/24
13.124.199.0/24
@ -32,19 +26,12 @@
13.228.69.0/24
13.233.177.192/26
13.249.0.0/16
13.32.0.0/15
13.35.0.0/16
13.48.32.0/24
13.54.63.128/26
13.59.250.0/26
143.204.0.0/16
144.220.0.0/16
15.158.0.0/16
15.188.184.0/24
15.207.13.128/25
15.207.213.128/25
180.163.57.0/25
180.163.57.128/26
18.64.0.0/14
18.68.0.0/16
18.154.0.0/15
18.160.0.0/15
18.164.0.0/15
@ -55,36 +42,6 @@
18.229.220.192/26
18.238.0.0/15
18.244.0.0/15
18.64.0.0/14
18.68.0.0/16
204.246.164.0/22
204.246.168.0/22
204.246.172.0/24
204.246.173.0/24
204.246.174.0/23
204.246.176.0/20
205.251.200.0/21
205.251.208.0/20
205.251.249.0/24
205.251.250.0/23
205.251.252.0/23
205.251.254.0/24
216.137.32.0/19
3.101.158.0/23
3.10.17.128/25
3.11.53.0/24
3.128.93.0/24
3.134.215.0/24
3.160.0.0/14
3.231.2.0/25
3.234.232.224/27
3.236.169.192/26
3.236.48.0/23
3.29.40.128/26
3.29.40.192/26
3.29.40.64/26
3.29.57.0/26
3.35.130.128/25
34.195.252.0/24
34.216.51.0/25
34.223.12.224/27
@ -95,19 +52,14 @@
35.167.191.128/26
36.103.232.0/25
36.103.232.128/26
43.218.56.64/26
43.218.56.128/26
43.218.56.192/26
43.218.56.64/26
43.218.71.0/26
44.227.178.0/24
44.234.108.128/25
44.234.90.252/30
52.124.128.0/17
44.234.108.128/25
52.15.127.128/26
52.199.127.192/26
52.212.248.0/26
52.220.191.0/26
52.222.128.0/17
52.46.0.0/18
52.47.139.0/24
52.52.191.128/26
@ -117,6 +69,11 @@
52.78.247.128/26
52.82.128.0/19
52.84.0.0/15
52.124.128.0/17
52.199.127.192/26
52.212.248.0/26
52.220.191.0/26
52.222.128.0/17
54.182.0.0/16
54.192.0.0/16
54.230.0.0/17
@ -130,8 +87,8 @@
54.240.128.0/18
58.254.138.0/25
58.254.138.128/26
64.252.128.0/18
64.252.64.0/18
64.252.128.0/18
65.8.0.0/16
65.9.0.0/17
65.9.128.0/18
@ -140,6 +97,49 @@
99.79.169.0/24
99.84.0.0/16
99.86.0.0/16
108.138.0.0/15
108.156.0.0/14
111.13.171.128/26
111.13.171.192/26
111.13.185.32/27
111.13.185.64/27
116.129.226.0/25
116.129.226.128/26
118.193.97.64/26
118.193.97.128/25
119.147.182.0/25
119.147.182.128/26
120.52.12.64/26
120.52.22.96/27
120.52.39.128/27
120.52.153.192/26
120.232.236.0/25
120.232.236.128/26
120.253.240.192/26
120.253.241.160/27
120.253.245.128/26
120.253.245.192/27
130.176.0.0/17
130.176.128.0/18
130.176.192.0/19
130.176.224.0/20
143.204.0.0/16
144.220.0.0/16
180.163.57.0/25
180.163.57.128/26
204.246.164.0/22
204.246.168.0/22
204.246.172.0/24
204.246.173.0/24
204.246.174.0/23
204.246.176.0/20
205.251.200.0/21
205.251.208.0/20
205.251.249.0/24
205.251.250.0/23
205.251.252.0/23
205.251.254.0/24
216.137.32.0/19
2400:7fc0:500::/40
2404:c2c0:500::/40
2409:8c00:2421:300::/56

View File

@ -1,8 +1,8 @@
#!/bin/sh
# See: https://stackoverflow.com/a/69768584/5155484
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service == "CLOUDFRONT") | .ip_prefix' | sort > cloudfront-ips.txt
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.ipv6_prefixes[] | select(.service == "CLOUDFRONT") | .ipv6_prefix' | sort >> cloudfront-ips.txt
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service == "CLOUDFRONT") | .ip_prefix' | sort -V > cloudfront-ips.txt
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.ipv6_prefixes[] | select(.service == "CLOUDFRONT") | .ipv6_prefix' | sort -V >> cloudfront-ips.txt
# Does not seem up to date: 06-2023
#curl https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips | jq -r '.CLOUDFRONT_GLOBAL_IP_LIST | join("\n")' | sort > cloudfront-ips.txt