Courseiva

Allow HTTPS and SSH through IAP only

about 6 minutes

In a custom VPC, add ingress firewall rules so the public web servers accept HTTPS (TCP 443) from anywhere, and SSH (TCP 22) only through Identity-Aware Proxy TCP forwarding, whose traffic comes from 35.235.240.0/20. Nothing else may reach the servers. Lower priority numbers win; Google's implied deny-ingress rule applies last.

UsePriorityActionProtocolSourceDest. port
65535implied deny ingress: deny all sources (default)