Skip to content

A worker for syncing a Cloudflare IP list to a specified set of Google Cloud Platform regions

Notifications You must be signed in to change notification settings

ssMMiles/sync-cloudflare-list-gcp-ips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sync-cloudflare-list-gcp-ips

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.

Environment

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 on Account 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.

About

A worker for syncing a Cloudflare IP list to a specified set of Google Cloud Platform regions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published