Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Is there any way to access Internet from private VM?

I want to install OS patching on my Windows Compute Engine instance that has no external ip address. I have found one option that is Cloud NAT. Is there any alternative of Cloud NAT for installing the patches on Compute engine instance?

Solved Solved
0 5 2,109
1 ACCEPTED SOLUTION

This tutorial: Deploying centralized VM-based appliances using VPC network peering shows how to set up a central NAT instance to route traffic from private VMs in multiple peered VPCs in a hub-spoke topology.

This approach might be useful when you want to set up centralized NAT for private VMs in multiple VPCs or for VMs with multiple network interfaces.

View solution in original post

5 REPLIES 5

Hi @vikasgarg04 , just curious... Could you help me understand why you're looking for an alternative to the fully managed Cloud NAT service?

Hi @kumards, Cloud NAT servers perfectly in my case. As a learner, I was just exploring if there is some other solutions available or not for the same problem.

Thanks for clarifying that, @vikasgarg04 .  All the best with your cloud learning journey!

This tutorial: Deploying centralized VM-based appliances using VPC network peering shows how to set up a central NAT instance to route traffic from private VMs in multiple peered VPCs in a hub-spoke topology.

This approach might be useful when you want to set up centralized NAT for private VMs in multiple VPCs or for VMs with multiple network interfaces.

Thanks @kumards