Google Cloud Armor delivers distributed denial-of-service (DDoS) defense and web application firewall (WAF) capabilities at the Google network edge before traffic enters a private cloud network. Security policies attach directly to backend services of external application load balancers, filtering inbound web requests closest to the user. A Cloud Armor security policy contains prioritized rules that evaluate incoming Layer 7 traffic against IP address ranges, geographic regions, request headers, and preconfigured WAF rule sets like the OWASP Top 10 vulnerabilities. When an incoming request matches a rule, the policy executes an action to allow, deny with a specific HTTP status code, or rate-limit the client.
[ Internet Client ] ---> [ Google Edge / Cloud Armor Policy ] ---> [ External Load Balancer ] ---> [ Backend VMs ]
(Inspect & Filter L7)
A Google Cloud Armor security policy evaluates rules in ascending numerical order, stopping as soon as a request matches a rule's conditions. If a request does not match any custom rule, it encounters the default rule at priority 2,147,483,647, which is usually set to deny or allow all remaining traffic. Administrators can place rules into preview mode to log what action would have taken place in Cloud Logging without actually dropping or throttling live user traffic. Rate-limiting rules track connection counts from individual client IP addresses, redirecting or blocking abusive users who exceed set request thresholds over a defined time window.
Google Cloud Next Generation Firewall (Cloud NGFW) policies and standard Virtual Private Cloud (VPC) firewall rules control bidirectional Layer 3 and Layer 4 traffic across cloud network interfaces. Security policies follow a strict evaluation hierarchy:
[ Organization Policy ] -> [ Folder Policy ] -> [ Network Policy ] -> [ Regional Policy ] -> [ Legacy VPC Rules ]
(Evaluation Order: Top to Bottom)
Cloud NGFW Enterprise integrates intrusion prevention system (IPS) capabilities directly into the VPC network to detect and prevent malware, spyware, and command-and-control attacks. Instead of relying only on static IP address ranges, firewall rules use service accounts and secure tags to dynamically apply access controls to virtual machine (VM) instances. Secure tags are managed at the organization level through Identity and Access Management (IAM), preventing VM administrators from changing their own firewall boundaries by modifying local network tags. Traffic inspection occurs distributed across the virtualization layer, eliminating the need to re-route internal network packets through separate hardware choke points.
Public Cloud NAT provides managed outbound internet connectivity for private Compute Engine VMs and Google Kubernetes Engine (GKE) nodes that do not possess public IP addresses. Outbound packets travel from the private subnet to the Public Cloud NAT gateway, which maps the internal IP address and port to a regional external IP address before forwarding the traffic to the internet. The gateway automatically tracks connection states so that inbound response packets return directly to the originating private instance, while unsolicited inbound connections from the internet remain blocked. Public Cloud NAT supports both automatic IP allocation, where Google Cloud provisions IP addresses dynamically, and manual IP allocation for environments that must provide fixed egress IP addresses to external firewalls.
[ Private Subnet VM ] ---> [ Public Cloud NAT Gateway ] ---> [ Public Internet ]
(Private IP Only) (Translates Private to Public)
Secure Web Proxy is a managed, cloud-first service that inspects and enforces security policies on outbound web traffic (HTTP and HTTPS) leaving a VPC network. Private VMs send their web traffic to the Secure Web Proxy endpoint without needing an external IP address or complex routing configurations. The proxy evaluates outbound requests against security policies based on source identities, fully qualified domain names (FQDNs), URL paths, and request headers. When Transport Layer Security (TLS) inspection is enabled, Secure Web Proxy decrypts the encrypted payload using a private Certificate Authority, checks the cleartext contents against security rules, and re-encrypts the traffic before sending it to the destination web server.
A network virtual appliance (NVA) is a third-party virtual machine that performs specialized routing, deep packet inspection, or unified threat management between network boundaries. NVAs typically connect to multiple VPC networks using multiple network interface cards (multi-NIC), creating a clear boundary between an untrusted public-facing subnet and a trusted internal subnet. To provide high availability, multiple NVA instances sit behind an Internal Passthrough Network Load Balancer configured as a next hop in a VPC custom route. The internal load balancer uses health checks to detect failing appliances and distributes symmetric traffic evenly across healthy NVAs without altering the original packet headers.
[ Untrusted VPC ] ---> [ Internal Load Balancer (Next Hop) ] ---> [ Active NVA Pool ] ---> [ Trusted Internal VPC ]
VPC Packet Mirroring clones raw network packets from selected VM instances and forwards them out-of-band to a designated collector instance without disrupting production traffic. The packet mirroring policy defines the traffic source by subnet, network tag, or instance name, and applies optional packet filters based on IP protocol, CIDR ranges, and direction. The mirrored copy of each packet travels to an Internal TCP/UDP Load Balancer that distributes the mirrored stream across a pool of security monitoring tools or intrusion detection systems (IDS). Because packet mirroring runs entirely within the hypervisor layer, it captures all matching packets regardless of whether local firewall rules allow or deny the original traffic.
Public Cloud NAT operates at Layer 3 and Layer 4 to allow private instances to initiate outbound connections to the internet by translating IP addresses and ports. Secure Web Proxy operates at Layer 7 to inspect, filter, and log outbound HTTP and HTTPS web requests based on domain names, URLs, and TLS certificates.
Hierarchical firewall policies created at the organization level evaluate first, followed by policies at the folder level, global network firewall policies, and regional network firewall policies. Legacy VPC firewall rules evaluate last, meaning a higher-level hierarchical rule that blocks traffic will stop the packet before any local VPC rule is considered.
An Internal Passthrough Network Load Balancer configured as a next hop allows multiple Network Virtual Appliances to operate in an active-active, highly available pool. The load balancer monitors appliance health and automatically reroutes traffic away from failed instances while maintaining symmetric connection paths.
VPC Packet Mirroring does not add latency to production traffic because the packet copying occurs asynchronously in the hypervisor. It captures all matching traffic traversing the virtual interface, including packets that are subsequently dropped by local firewall rules.
Professional Cloud Network Engineer
Prepare and test your skills
Prepare and test your skills