Step 1: gcloud compute firewall-rules delete open-access
step 2: gcloud compute instances start bastion
step 3: gcloud compute firewall-rules create ssh-ingress --allow=tcp:22 --source-ranges 35.235.240.0/20 --target-tags ssh-ingress --network acme-vpc
gcloud compute instances add-tags bastion --tags=ssh-ingress --zone=us-central1-b
step 4: gcloud compute firewall-rules create http-ingress --allow=tcp:80 --source-ranges 0.0.0.0/0 --target-tags http-ingress --network acme-vpc
step 5: gcloud compute instances add-tags juice-shop --tags=http-ingress --zone=us-central1-b
step 6: gcloud compute firewall-rules create internal-ssh-ingress --allow=tcp:22 --source-ranges 192.168.10.0/24 --target-tags internal-ssh-ingress --network acme-vpc
step 7 :gcloud compute instances add-tags juice-shop --tags=internal-ssh-ingress --zone=us-central1-b
Blogspot: https://gcpchallengelabs.blogspot.com/
LinkedIn: https://www.linkedin.com/in/yash-vadhadiya-03102b146/
GitHub: https://github.com/YashVadhadiya
Telegram: https://t.me/megaebookstore
Linktree: https://linktr.ee/yashvadhadiya
Comments
Post a Comment