use the global amazon endpoint and add more IPv4 for CloudFront

This commit is contained in:
2023-06-23 18:57:14 +02:00
parent 7bcf89346c
commit bfd1be4a73
2 changed files with 59 additions and 1 deletions

View File

@ -1,3 +1,4 @@
#!/bin/sh
curl https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips | jq -r '.CLOUDFRONT_GLOBAL_IP_LIST | join("\n")' | sort > cloudfront-ips.txt
curl -f -s -# https://ip-ranges.amazonaws.com/ip-ranges.json | jq -r '.prefixes[] | select(.service == "CLOUDFRONT") | .ip_prefix' | sort > cloudfront-ips.txt
#curl https://d7uri8nf7uskq.cloudfront.net/tools/list-cloudfront-ips | jq -r '.CLOUDFRONT_GLOBAL_IP_LIST | join("\n")' | sort > cloudfront-ips.txt