How to create a firewall rule in GCP Cloud

+2 votes

Hi Guys,

I am new to GCP Cloud. I want to add one rule in my GCP instance. Can anyone tell me how can I create a firewall rule in GCP Cloud?

Aug 22, 2020 in GCP by akhtar
• 38,180 points
191 views

1 answer to this question.

0 votes

Hi@akhtar,

If you are using the default VPC network that comes with your Google Cloud (GCP) project, and you haven't changed or added any firewall rules for that network, then you don't need to create any firewall rules. But if you create your own firewall, then you can follow the below steps.

  • Click Create a firewall rule.

  • Enter a Name for the firewall rule. This name must be unique for the project.

  • Specify the Network in which you want to implement the firewall rule.

  • Specify the Priority of the rule.

  • Choose Ingress for Direction of traffic.

  • Choose to Allow for Action on a match.

  • For Protocols and ports, choose Specified protocols and ports

  • Click on create and your rule will be created.

answered Aug 22, 2020 by MD
• 95,220 points

Related Questions In GCP

0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23, 2019 in GCP by Sirajul
• 59,070 points
936 views
0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer

How to create a VPC in GCP Cloud?

Hi@akhtar, You can create a private network in ...READ MORE

answered Aug 23, 2020 in GCP by MD
• 95,220 points
166 views
0 votes
1 answer

Does Google cloud platform (GCP) offer IaaS ? Or just PaaS?

GCP provides IaaS as well, although it ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,070 points
3,074 views
0 votes
1 answer

How do I create a VPCN (Virtual private cloud network) on Google Cloud?

You can connect various GCP resources to each ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,070 points
548 views
0 votes
1 answer

Cloud SQL of google cloud is IaaS or PaaS?

Cloud SQL is PAAS (Plaform As A ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,070 points
1,402 views
0 votes
1 answer

What all services does Google Cloud provide as a part of machine learning?

Here's a list of  Machine learning services that ...READ MORE

answered Sep 23, 2019 in GCP by Sirajul
• 59,070 points
353 views
0 votes
1 answer

How to update a firewall rule in GCP Cloud?

Hi@akhtar, You can create a rule that allows TCP ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,220 points
199 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,220 points
120 views