Ensure that Cloud NAT is enabled for all private VPC subnets that require outbound access. Cloud NAT enables your VMs and container pods to establish outbound connections to the Internet or other Virtual Private Cloud (VPC) networks. It utilizes a Cloud NAT gateway to manage these connections efficiently.
excellence
Enabling Cloud NAT for Google Cloud VPC private subnets ensures that instances without public IPs can securely access the Internet for updates or APIs while comply with strict data privacy regulations. It provides scalable, managed network address translation without exposing instances to inbound traffic, improving security and simplifying network management.
Audit
To determine if Cloud NAT is enabled for your private VPC subnets, perform the following operations:
Remediation / Resolution
To ensure that Cloud NAT is enabled for all private VPC subnets that require outbound access, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Cloud NAT overview
- Set up and manage network address translation with Public NAT
- Use Public NAT with Compute Engine
- Use Public NAT with GKE
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud compute networks list
- gcloud compute networks subnets list
- gcloud compute routers list
- gcloud compute routers nats list
- gcloud compute routers create
- gcloud compute routers nats create