Allow IAP
This commit is contained in:
parent
7195278f2c
commit
d19d3f4de0
1 changed files with 6 additions and 0 deletions
|
|
@ -40,6 +40,12 @@ gcloud compute firewall-rules create allow-tcp-8080 \
|
||||||
--source-ranges 0.0.0.0/0 \
|
--source-ranges 0.0.0.0/0 \
|
||||||
--direction INGRESS
|
--direction INGRESS
|
||||||
|
|
||||||
|
# Create a firewall rule to allow IAP traffic
|
||||||
|
gcloud compute firewall-rules create allow-iap \
|
||||||
|
--network $VPC_NAME \
|
||||||
|
--allow tcp:80,tcp:443 \
|
||||||
|
--source-ranges 35.235.240.0/20 \
|
||||||
|
--direction INGRESS
|
||||||
|
|
||||||
# Create the Cloud Router and NAT Gateway
|
# Create the Cloud Router and NAT Gateway
|
||||||
gcloud compute routers create $CLOUD_ROUTER_NAME \
|
gcloud compute routers create $CLOUD_ROUTER_NAME \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue