Allowing Traffic to the Compute Engine Instances

Lab Steps

lock
Signing In to the Google Cloud Console
lock
Creating an Instance Template
lock
Deploying a Managed Instance Group
lock
Allowing Traffic to the Compute Engine Instances
lock
Defining an HTTP Load Balancer for the Instance Group
lock
Performing a Stress Test to the Managed Instance Group
Need help? Contact our support team

Here you can find the instructions for this specific Lab Step.

If you are ready for a real environment experience please start the Lab. Keep in mind that you'll need to start from the first step.

Introduction

Because the website is listening on port 80, you need to allow traffic on this port for the Compute Engine instances. For security reasons, Google doesn't provide access to the 80 port by default. In this lab step, you will allow traffic on port 80 for the instances.

 

Instructions

1. Navigate to the Compute Engine dashboard and click on one of the instances.

The instance details are displayed.

 

2. Scroll down until you reach the Network interfaces section:

alt

 

3. Click on the name of the network interface.

You will be redirected to the VPC console.

 

4. Click on Firewall in the left panel:

alt

5. Click on CREATE FIREWALL RULE.

alt

6. Fill the form that appears as shown below (leave all other fields not mentioned here at their default values):

  • Nameallowing-80
  • TargetsAll instances in the network
  • Source IP ranges0.0.0.0/0
  • Protocols and ports:
    • tcpChecked
    • tcp (value)80

 alt

alt

 

7. Click on CREATE.

 

Summary

In this lab step, you allowed traffic on port 80 for the instances.

Validation checks
1Checks
Traffic on port 80 is allowed

Check that traffic on port 80 is allowed.

Google Virtual Private Cloud (VPC)