GCP: Create firewall rules with gcloud command

#gcloud compute firewall-rules create nw101-allow-http \
> --allow tcp:80 --network networking101 --source-ranges 0.0.0.0/0 \
> --target-tags http-server
Creating firewall...-Created [https://www.googleapis.com/compute/v1/projects/spartan-network-198022/global/firewalls/nw101-allow-http].
Creating firewall...done.
NAME              NETWORK        DIRECTION  PRIORITY  ALLOW   DENY
nw101-allow-http  networking101  INGRESS    1000      tcp:80

Updates are available for some Cloud SDK components.  To install them,
please run:
  $ gcloud components update
  •  
  •  
  •  
  •  

Viet Luu has written 318 articles

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

We are thankful for your never ending support.

Leave a Reply