Firewall Rule

Create a new firewall rule
Add the network tag to you VM
# Create a new firewall rule that allows INGRESS tcp:8081 with VMs containing tag 'allow-tcp-8081'
gcloud compute firewall-rules create rule-allow-tcp-8081 --source-ranges --target-tags allow-tcp-8081 --allow tcp:8081

# Add the 'allow-tcp-8081' tag to a VM named VM_NAME
gcloud compute instances add-tags VM_NAME --tags allow-tcp-8081

# If you want to list all the GCE firewall rules
gcloud compute firewall-rules list

Learner, thinker and Doer.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Binary Search — Find Upper and Lower Bound

Best Practices for Microservice

When paying for Software Development, don’t ask for a fixed scope

Nervos developers can benefit from Arweave storage by joining Boost program

Nervos and Arweave partnership


Global Acceleration Cooperation Partnership between WeBlock and BigBang Core(BBC)

A detailed comparison between TCS(ITIS) and Cognizant(CTS) for Freshers.

Computer Networking: What You Need To Know! Part 1

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Azim Shaik

Azim Shaik

Learner, thinker and Doer.

More from Medium

Manage IBM Cloud Security and Compliance Center resources via Terraform

Terraform Multiversion with Docker

No space left on device from model training [1min Solution]

COVID-19 is a cloud security catalyst