Skip to content
Cloud Governance Tools

Define allowed external IPs for VM instances

Define allowed external IPs for VM instances is a Google Cloud guardrail written in organization Policy Service. Limits which Compute Engine VM instances can use external IPv4 addresses. What it breaks: google documents that it does not restrict the use of IPv6 addresses.

More public exposure guardrails ยท About Organization Policy Service

constraints/compute.vmExternalIpAccess
This list constraint defines the set of Compute Engine VM instances that are allowed to use external IPv4 addresses. This constraint doesn't restrict the use of IPv6 addresses.
By default, all VM instances are allowed to use external IPv4 and IPv6 addresses.
The allowed/denied list of VM instances must be identified by the VM instance name, in the form: projects/ PROJECT_ID /zones/ ZONE /instances/ INSTANCE
Supported prefix: is:
For more information, see Restrict external IP access to specific instances .
Blocks
Limits which Compute Engine VM instances can use external IPv4 addresses. (legacy managed constraint, list.)
Breaks
Google documents that it does not restrict the use of IPv6 addresses. (source)
Test before applying
As for every Organization Policy Service guardrail: how to test before enforcing
Mechanism
Organization Policy Service (managed and legacy constraints): Resources in the organization, folder or project where the policy is set and its descendants; Google says application of new policies is usually not retroactive.
Taken from
provider documentation, provider documentation

What the source says

"This list constraint defines the set of Compute Engine VM instances that are allowed to use external IPv4 addresses." (read 10 Nov 2026).

On what it breaks: "This constraint doesn't restrict the use of IPv6 addresses."

Sources

  1. Define allowed external IPs for VM instances, read 10 Nov 2026
  2. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.