Sync GCP IP ranges for a specified scope to a Cloudflare IP list.
Runs on a Cron Worker by default, but also has a fetch handler if you want to call it over HTTP.
Set the following keys using wrangler secret put <KEY>
:
-
CF_ACCOUNT_ID
: Your Cloudflare account ID -
CF_API_TOKEN
: An API token with Edit permissions onAccount Filter Lists
. -
CF_LIST_ID
: The ID of the list in which the IPs will be stored. -
GCP_SCOPE
: A comma seperated list of desired scopes in GCP's IP ranges. Also accepts "*" as a wildcard.