Ensure that your Google Cloud NAT gateways are configured to use static reserved external IPs in order to maintain consistent outbound IP addresses, which are critical for services requiring IP allowlisting, auditing, or compliance
excellence
In Google Cloud, Reserved External IPs are static IP addresses explicitly allocated and reserved by a user for use with resources like Virtual Machine (VM) instances, load balancers, or other Google Cloud services. Unlike ephemeral external IPs, which are dynamically assigned and can change when a resource is stopped or restarted, reserved external IPs are fixed and persist independently of the lifecycle of the resource they are associated with. Using Reserved External IPs for Google Cloud NAT gateways provides greater control and predictability over the IP addresses used for outbound traffic, enabling easier firewall configuration and allowing for more granular traffic management.
Audit
To determine if your Google Cloud NAT gateways are using reserved external IPs, perform the following operations:
Remediation / Resolution
Using reserved external IPs ensures that traffic is predictable and can be monitored. To configure reserved external IPs for your Google Cloud NAT gateways, perform the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Cloud NAT overview
- Public NAT
- Set up and manage network address translation with Public NAT
- GCP Command Line Interface (CLI) Documentation
- gcloud projects list
- gcloud compute networks list
- gcloud compute routers list
- gcloud compute routers nats list
- gcloud compute routers nats describe
- gcloud compute addresses create
- gcloud compute routers nats update