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 in GCP by akhtar
• 28,660 points
54 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 by MD
• 66,380 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
• 58,130 points
547 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
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
• 58,130 points
1,796 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
• 58,130 points
342 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
• 58,130 points
770 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
• 58,130 points
215 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 in GCP by MD
• 66,380 points
46 views
+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 in GCP by MD
• 66,380 points
52 views