implementing-gcp-vpc-firewall-rules

Featured

Implementing and auditing GCP VPC firewall rules to enforce network segmentation, restrict ingress and egress traffic, apply hierarchical firewall policies across the organization, and monitor firewall rule effectiveness using VPC Flow Logs.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Implementing GCP VPC Firewall Rules ## When to Use - When deploying new GCP workloads that require network-level access controls - When auditing existing firewall configurations for overly permissive rules - When implementing zero trust network segmentation within GCP VPC networks - When responding to Security Command Center findings about open firewall rules - When building hierarchical firewall policies across a GCP organization **Do not use** for application-layer filtering (use Cloud Armor WAF), for DNS-based filtering (use Cloud DNS response policies), or for VPN/interconnect traffic filtering without understanding that VPC firewall rules apply to traffic within the VPC. ## Prerequisites - GCP project with Compute Engine API enabled - IAM roles: `roles/compute.securityAdmin` for firewall management, `roles/compute.networkViewer` for auditing - Organization Admin role for hierarchical firewall policies - gcloud CLI authenticated with appropriate permissions - VPC Flow Logs enabled on target subnets for monitoring ## Workflow ### Step 1: Audit Existing Firewall Rules for Security Gaps Enumerate all firewall rules and identify overly permissive configurations. ```bash # List all firewall rules in the project gcloud compute firewall-rules list \ --format="table(name, network, direction, priority, allowed[].map().firewall_rule().list():label=ALLOWED, sourceRanges, targetTags)" # Find rules allowing all traffic from 0.0.0.0/0 gcloud compute firewall-rules list \ ...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category