hardgcloud

Create a new VPC firewall rule to allow or deny specific traffic

command

gcloud compute firewall-rules create RULE_NAME --allow PROTOCOL:PORT

also accepted

gcloud compute firewall-rules creategcloud compute firewall-rules create RULE_NAME

Test your recall — not just your reading.

Practice with interactive quiz →