{"id":34647178,"url":"https://github.com/jerryzj/gcp_firewall","last_synced_at":"2026-05-25T18:03:27.198Z","repository":{"id":40269114,"uuid":"307611023","full_name":"jerryzj/GCP_firewall","owner":"jerryzj","description":"Automatically generate GCP shell commands to set firewall that blocks ingress from certain region","archived":false,"fork":false,"pushed_at":"2022-05-17T08:54:36.000Z","size":106,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-03-09T23:26:34.793Z","etag":null,"topics":["automation","firewall-rules","gcp","gcp-compute","gcp-firewall"],"latest_commit_sha":null,"homepage":"","language":"C++","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/jerryzj.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":"2020-10-27T06:49:32.000Z","updated_at":"2021-11-13T11:14:07.000Z","dependencies_parsed_at":"2022-08-27T12:02:51.873Z","dependency_job_id":null,"html_url":"https://github.com/jerryzj/GCP_firewall","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/jerryzj/GCP_firewall","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryzj%2FGCP_firewall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryzj%2FGCP_firewall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryzj%2FGCP_firewall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryzj%2FGCP_firewall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jerryzj","download_url":"https://codeload.github.com/jerryzj/GCP_firewall/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jerryzj%2FGCP_firewall/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33486787,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-25T14:31:05.219Z","status":"ssl_error","status_checked_at":"2026-05-25T14:31:02.878Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["automation","firewall-rules","gcp","gcp-compute","gcp-firewall"],"created_at":"2025-12-24T17:48:17.613Z","updated_at":"2026-05-25T18:03:27.191Z","avatar_url":"https://github.com/jerryzj.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCP_firewall\n\nAutomatically generate GCP shell commands to set firewall that blocks ingress from certain region\n\n## 1. Get the latest IP blacklist\n\nGet the latest IP list [here](https://www.ip2location.com/free/visitor-blocker), and choose the output format as CIDR.\n\n## 2. Build command generator\n\nNote that this program requires C++17 standard, make sure your compiler is not too old\n\n```shell\nmkdir build \u0026\u0026 cd build\ncmake .. -G Ninja\nninja\n```\n\n## 3. Run and generate commands\n\n```shell\n./command_generator -i (input ip list) -id (GCP project id)\n```\n\n## 4. Run the generated file in GCP cloud shell\n\n```shell\nchmod +x block_china.sh\n./block_china.sh\n```\n\n## Notes\n\nIf you are updating firewall rules, make sure clear the old ones before adding the latest rules.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryzj%2Fgcp_firewall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerryzj%2Fgcp_firewall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryzj%2Fgcp_firewall/lists"}