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
- 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
Assessment
This issue has not been assessed yet.