hardgcloud
Create a firewall rule to allow TCP traffic on a specific port within a VPC network
command
gcloud compute firewall-rules create RULE_NAME --allow tcp:PORT --network NETWORK_NAMEalso accepted
gcloud compute firewall-rules createcommand
gcloud compute firewall-rules create RULE_NAME --allow tcp:PORT --network NETWORK_NAMEalso accepted
gcloud compute firewall-rules createPart of the Google Cloud CLI (gcloud) — Networking category.
| Flag | Purpose |
|---|---|
--allow | Boolean flag |
--network | Boolean flag |
Test your recall — not just your reading.
Practice with interactive quiz →