Allowing Traffic to the Compute Engine Instances

Lab Steps

lock
Signing In to the Google Cloud Console
lock
Defining an Instance Group for the Compute Engine Instances
lock
Allowing Traffic to the Compute Engine Instances
lock
Creating a Load Balancer for the Instance Group
lock
Testing the Functionality of the Load Balancer
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 IPv4 ranges0.0.0.0/0
  • Protocols and ports:
    • TCPChecked
    • Ports80

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)