Overview

In this section, you will create a firewall rule in the Google Cloud Console to allow inbound TCP traffic on port 8123.

Note

For support on GCP setup, see the Learning Path Getting started with Google Cloud Platform .

Create a Firewall Rule in GCP

To expose the TCP port 8123, create a firewall rule.

Navigate to the Google Cloud Console , go to VPC Network > Firewall, and select Create firewall rule.

Image Alt Text:Google Cloud Console VPC Network Firewall page with Create Firewall Rule button highlighted alt-txtCreate a firewall rule

Set the Name of the new rule to “allow-tcp-8123”. Select your network that you intend to bind to your VM (default is “autoscaling-net”, but your organization might have others).

Image Alt Text:Firewall rule configuration screen showing name field and network selection dropdown alt-txtCreating the TCP/8123 firewall rule

Next, Set Direction of traffic to “Ingress”. Set Allow on match to “Allow” and Targets to “Specified target tags”. Set Source IPv4 ranges to “0.0.0.0/0”.

Image Alt Text:Firewall rule settings displaying Ingress direction, Allow action, and source IP range configuration alt-txtCreating the TCP/8123 firewall rule

Finally, select Specified protocols and ports under the Protocols and ports section. Select the TCP checkbox, enter “8123” in the Ports text field, and select Create.

Image Alt Text:Protocols and ports section with TCP checkbox selected and port 8123 entered in text field alt-txtSpecifying the TCP port to expose

The network firewall rule is now created, and you can continue with the VM creation.

Back
Next