Google Cloud · Networking
Cloud Next Generation Firewall
Google Cloud's distributed firewall: VPC firewall rules and hierarchical, global and regional firewall policies, with optional threat inspection.
On the Google Cloud Associate Cloud Engineer exam listNetwork segmentationThreat detection
What it is and what problem it solves
Cloud Next Generation Firewall (Cloud NGFW) enforces stateful firewall rules on every VM and GKE node without appliances. Hierarchical firewall policies apply at the organisation or folder level, network firewall policies per network, and classic VPC firewall rules remain supported. Rules match direction, priority, protocols and ports, sources and destinations, and targets such as service accounts or secure tags. Higher tiers add FQDN and geolocation objects and intrusion prevention.
When to use it
- Controlling traffic between tiers and services inside VPC networks.
- Organisation-wide guardrails (block risky ports everywhere) through hierarchical policies.
- Allowing load balancer health-check ranges and IAP for administrative access.
When to avoid it
- Relying on network tags for security boundaries when anyone who can edit a VM can add a tag: target service accounts or secure tags.
- HTTP-layer attacks (SQL injection, bots): add Cloud Armor on the load balancer.
Cost model
What you pay for
- Standard firewall rules and policies are free.
- Higher tiers bill for advanced features and inspected traffic; firewall logging adds log volume.
Where it is cost-efficient
Policies at the folder level that cover many projects.
Where costs grow
Logging every rule; inspection on traffic that doesn't need it.
Cost controls and common surprises
Enable logging selectively and scope advanced inspection to sensitive traffic.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Stateful enforcement at each VM's network interface; implied deny-ingress and allow-egress rules.
What you configure
Deny by default, allow specific sources to specific service accounts or secure tags, and review rules with Firewall Insights.
Logging and monitoring
Firewall rules logging records matched connections.
Exam cues and common confusions
- Lowest priority number wins; ties go to deny.
- Load balancer backends unhealthy: allow health-check ranges 35.191.0.0/16 and 130.211.0.0/22.
- Organisation-wide rules: hierarchical firewall policies; target by identity: service accounts or secure tags.
Related
Courses and lessons
- The Load Balancer That Returned 502 · Google Cloud in Production · Members
Services, comparisons and patterns
- Virtual Private Cloud (VPC) · Service
- Cloud Load Balancing · Service
- Compute Engine · Service
Sources
Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.