{"id":17180753,"url":"https://github.com/dhowden/ipranges","last_synced_at":"2025-03-25T00:41:05.147Z","repository":{"id":41200041,"uuid":"508701237","full_name":"dhowden/ipranges","owner":"dhowden","description":"ipranges","archived":false,"fork":false,"pushed_at":"2022-06-29T22:31:48.000Z","size":7,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-30T03:15:14.121Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhowden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-29T13:23:13.000Z","updated_at":"2023-04-20T17:10:28.000Z","dependencies_parsed_at":"2022-09-13T05:00:27.441Z","dependency_job_id":null,"html_url":"https://github.com/dhowden/ipranges","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowden%2Fipranges","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowden%2Fipranges/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowden%2Fipranges/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhowden%2Fipranges/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhowden","download_url":"https://codeload.github.com/dhowden/ipranges/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377958,"owners_count":20605374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T00:31:27.510Z","updated_at":"2025-03-25T00:41:05.119Z","avatar_url":"https://github.com/dhowden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ipranges tool\n\nGoogle Cloud publishes a JSON-formatted list of customer-usable global and regional external IP address ranges here: https://www.gstatic.com/ipranges/cloud.json.\n\nThis tool fetches that data and provides filtering by region prefix, and other useful options (IPv6, IPv4 etc).\n\n## Installing the tool\n\n```console\n$ go install github.com/dhowden/ipranges/cmd/ipranges@latest\n$ ipranges -h\nUsage of ipranges:\n  -fetch-timeout duration\n        timeout after duration (default 5s)\n  -ipv4\n        show IPv4 addresses (default true)\n  -ipv6\n        show IPv6 addresses (default true)\n  -region string\n        prefix of region to match\n  -regions\n        only list regions\n```\n\n## List the regions\n\n```console\n$ ipranges -regions\nasia-east1\nasia-east2\nasia-northeast1\nasia-northeast2\n...\n```\n\n## List IP ranges for specific region prefixes\n\nFor the `us-central2` region:\n\n```console\n$ ipranges -region us-central2\n107.167.160.0/20\n108.59.88.0/21\n...\n```\n\nFor all `us-central` regions:\n\n```console\n$ ipranges -region us-central\n104.154.113.0/24\n104.154.114.0/23\n...\n```\n\nExclude IPv6 addresses:\n\n```console\n$ ipranges -region us-central2 -ipv6=false\n107.167.160.0/20\n108.59.88.0/21\n...\n```\n\nExclude IPv4 addresses\n\n```console\n$ ipranges -region us-central2 -ipv4=false\n2600:1900:4070::/44\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhowden%2Fipranges","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhowden%2Fipranges","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhowden%2Fipranges/lists"}