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

I’m a Magic MABS: How the Mobile Apps Build Service Works

Deadlock in Java Multi-Threading

Celery Asynchronous Task Queues with Flower & FastAPI

Introduction to .NET Core : Part 1

Taking scanning technology beyond Auto-ID is possible, here’s how

How to Google like a pro

How to create Cloud SQL instance for the PostgreSQL database in Google Cloud Platform

Updating Service — ArcGIS API for Python

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

Elegy to Cloud Monitoring

Part 4 of 4 — Oracle IaaS and Seven Pillars of Trusted Enterprise Cloud Platform

IoT Edge Dev Quick Book

Cloud Podcast Recommendations