Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in GCP by (29.3k points)

While I had been testing google cloud, I created 1 VPC network with 2 servers with only the private IP and a bastion host for SSh.

These servers needed to access the Internet, but in GCE, I could not see this kind of service like in AWS.

How can I use the Internet gateway/NAT gateway, which is default, in GCP?

1 Answer

0 votes
by (50.2k points)
edited by

Google cloud indeed provides you with the NAT gateway, which can be used to access the Internet through private instances.

By using cloud NAT we can achieve this task. VM instances, where there are no external IP addresses in any subnet of the region are provided with internet access through NAT.

For more details, refer to the tutorial on google cloud.

Browse Categories

...