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 143 articles

Leave a Reply