main
  • About
  • Civil Engineering
    • Interview questions
    • Bridge design
  • Google Cloud
    • Code samples
    • kafka
    • Cloud Run
    • persistent disks
    • Spinnaker
    • Assessment questions
    • IAM
    • Cloud Storage
    • VPC
    • Cost optimization
    • Compute Engine
    • App Engine
    • Cloud Vision
    • Spanner
    • Cloud SQL
    • Solutions
      • Static IP - WIP
      • Network performance
      • Building a VPN
      • Build a streaming app
      • ML train with taxi data
    • Dataproc
    • Dataprep
    • BigTable
    • Cloud Fusion
    • Data flow
    • CloudFront
    • APIGEE
    • BigQuery
    • Cloud logging
    • Pubsub
    • Identity Aware Proxy
    • Data center migration
    • Deployment Manager
    • Kubeflow
    • Kubernetes Engine
    • Istio
    • Read the following
    • Storage for cloud shell
    • kms
    • kpt
    • Hybrid cloud with Anthos
    • helm
    • Architecture
    • terraform
    • Network
    • Data studio
    • Actions
    • Jenkins
  • Data Processing
    • Data Lake
    • Data ingestion
    • Data Cleaning - Deduplication
    • Data Cleaning - Transformation
    • Data cleaning - rule definition
    • ETL
  • Machine Learning
    • Tensorflow
    • Tensorflow tips
    • Keras
    • Scikit-learn
    • Machine learning uses
    • Working with Pytorch
    • Federated learning
  • AWS cloud
    • Billing
    • Decrease volume size of EC2
    • Run CVE search engine
    • DataSync
    • EC2 spot instances
  • Java
    • Java
    • NIO
    • System Design
      • Zero trust framework
    • Collections
  • Azure
    • Enterprise Scale
    • API
    • Resource group
    • Create an sql database
  • UBUNTU
    • No Release file
    • STRATO blockchain
    • iperf
    • Rsync
    • curl
    • Shell
    • FAQ - git
  • PH test
    • Syllabus
    • Opportunities
    • Aptitude test
  • Development
    • Course creation
    • web.dev
    • docfx template
  • npm
  • Docker Desktop
  • Nginx
  • English rules
  • Confluent
  • sanity theme
  • Java Native Interface tutorial
  • Putty
  • Personal website host
  • Google search SEO
  • Reading a textbook
  • DFCC Progress
  • STORAGE
    • Untitled
  • Services Definition
    • Cloud VPN and routing
  • Microservices design and Architecture
    • Untitled
  • Hybrid network architecture
    • Untitled
  • Deployment
    • Untitled
  • Reliability
    • Untitled
  • Security
    • Untitled
  • Maintenance and Monitoring
    • Peering
  • Archive
    • parse dml to markdown
Powered by GitBook
On this page
  • How to create firewalls and use them from selective access to machines?
  • IAP

Was this helpful?

  1. Google Cloud

VPC

PreviousCloud StorageNextCost optimization

Last updated 4 years ago

Was this helpful?

VPC network

How to create firewalls and use them from selective access to machines?

    1  gcloud compute firewall-rules list
    2  gcloud compute --project=qwiklabs-gcp-04-85e6969e7efe firewall-rules create allow-ingress-from-iap --direction=INGRESS --priority=1000 --network=acme-vpc --action=ALLOW --rules=tcp:22,tcp:3389 --source-ranges=35.235.240.0/20
    3  gcloud compute --project=qwiklabs-gcp-04-85e6969e7efe firewall-rules create allow-egress-from-juice-shop --direction=EGRESS --priority=1000 --network=acme-vpc --action=ALLOW --rules=tcp:80 --destination-ranges=0.0.0.0/0 --target-tags=customers-use
    4  gcloud compute --project=qwiklabs-gcp-04-85e6969e7efe firewall-rules create allow-juice-shop-for-customers --direction=INGRESS --priority=1000 --network=default --action=ALLOW --rules=tcp:80 --source-ranges=0.0.0.0/0 --target-tags=customers-use
    5  gcloud compute --project=qwiklabs-gcp-04-85e6969e7efe firewall-rules create allow-juice-shop-for-customers --direction=INGRESS --priority=1000 --network=acme-vpc --action=ALLOW --rules=tcp:80 --source-ranges=0.0.0.0/0 --target-tags=customers-use
    6  gcloud compute --project=qwiklabs-gcp-04-85e6969e7efe firewall-rules create bastion-to-juice-shop-ssh --description=bastion-to-juice-shop-ssh --direction=INGRESS --priority=1000 --network=acme-vpc --action=ALLOW --rules=tcp:22 --source-ranges=192.168.10.0/24 --target-tags=ssh-juice-shop-from-bastion
    7  history

IAP

.

.

.

.

.

https://cloud.google.com/iap/docs/using-tcp-forwarding#console
https://cloud.google.com/sdk/gcloud/reference/compute/firewall-rules/create
https://google.qwiklabs.com/focuses/12068?parent=catalog
https://cloud.google.com/python/docs/getting-started/authenticate-users#app-managed_authentication
https://google.qwiklabs.com/focuses/5562?parent=catalog