Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create importer script for Cloudflare public IP ranges #569

Open
fershad opened this issue Mar 15, 2024 · 1 comment · May be fixed by #572
Open

Create importer script for Cloudflare public IP ranges #569

fershad opened this issue Mar 15, 2024 · 1 comment · May be fixed by #572

Comments

@fershad
Copy link
Contributor

fershad commented Mar 15, 2024

Is your feature request related to a problem? Please describe.
Currently, information about Cloudflare's IP ranges needs to be manually maintained. This can lead to it being out of date fairly quickly.

Describe the solution you'd like
Cloudflare publishes a list of public IP ranges (IPv4 and v6) which it regularly updates and maintains. The ideal solution would be to create an importer script like the ones present for Google, AWS, Microsoft, and Equinix (https://github.com/thegreenwebfoundation/admin-portal/tree/master/apps/greencheck/importers). This can then be used to automate the updating of Cloudflare IP ranges.

List of public IP ranges: https://www.cloudflare.com/ips/
TXT IPv4 list: https://www.cloudflare.com/ips-v4/#
TXT IPv6 list: https://www.cloudflare.com/ips-v6/#

Information can also be accessed via the Cloudflare API as outlined in these docs: https://developers.cloudflare.com/api/operations/cloudflare-i-ps-cloudflare-ip-details

@fershad
Copy link
Contributor Author

fershad commented Mar 15, 2024

Before getting started on this, it would be super handy to find someone at Cloudflare who can confirm that these are the only IP ranges they use for customers. If others do exist, then it'd be useful to know where we can find those too so that they can also be included in this update.

@fershad fershad linked a pull request Apr 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant