hardgcloud

Update an existing VPC firewall rule to change allowed protocols or ports

command

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

also accepted

gcloud compute firewall-rules update

Test your recall — not just your reading.

Practice with interactive quiz →