How to update a firewall rule in GCP Cloud

0 votes

Hi Team,

I have one firewall rule in GCP Cloud. I want to update the rule so that it can allow port 80. How can I do that with the command line?

Nov 9, 2020 in GCP by akhtar
• 38,210 points
248 views

1 answer to this question.

0 votes

Hi@akhtar,

You can create a rule that allows TCP traffic through port 80. The following gcloud command can be used to perform the task.

$ gcloud compute firewall-rules update MY-RULE --allow tcp:80
answered Nov 9, 2020 by MD
• 95,300 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
1,018 views
0 votes
1 answer
0 votes
1 answer
+2 votes
1 answer

How to enable new services to a project in GCP Cloud?

Hi@akhtar, You can enable new services to your ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,300 points
230 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,355 views
0 votes
1 answer

How do I create a Google Cloud Platform (GCP) account?

In order to access the services provided ...READ MORE

answered Sep 20, 2019 in GCP by Sirajul
• 59,070 points
1,744 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
630 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,553 views
+2 votes
1 answer

How to create a firewall rule in GCP Cloud?

Hi@akhtar, If you are using the default VPC ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,300 points
219 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,300 points
148 views