GoogleCloudPlatform / GoogleCloudPlatform/pubsec-declarative-toolkit

SSH IAP access from GCP console - restrict firewall 22 ingress rule to GCP CIDR range 35.235.240.0/20

Open
#361 0 comments 0 reactions 1 assignee Claimed by @fmichaelobrien View on GitHub
compliance
Dominant language
Shell
Stars
36
Forks
26
PR merge metrics
No merged PRs in 30d

Description

By default the 4 VPC firewall rules including default-allow-ssh have an ingress wide open at 0.0.0.0/0 - restrict this to 35.235.240.0./20

https://cloud.google.com/iap/docs/using-tcp-forwarding
To allow IAP to connect to your VM instances, create a firewall rule that:

applies to all VM instances that you want to be accessible by using IAP.
allows ingress traffic from the IP range `[35.235.240.0/20](http://35.235.240.0/20)`. This range contains all IP addresses that IAP uses for TCP forwarding.
allows connections to all ports that you want to be accessible by using IAP TCP forwarding, for example, port `22` for SSH and port `3389` for RDP.

backport: https://github.com/GoogleCloudPlatform/pbmm-on-gcp-onboarding/issues/246

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.