1
0
Fork 0
mirror of https://github.com/imjasonh/gcloud-help synced 2026-07-20 04:58:26 +00:00

gcloud: Tue Mar 1 21:43:54 UTC 2022

This commit is contained in:
Automated 2022-03-01 21:43:54 +00:00
parent c1c3b75313
commit 21878eea72
1018 changed files with 4838 additions and 3409 deletions

View file

@ -25,14 +25,14 @@ DESCRIPTION
EXAMPLES
Auto-allocate NAT for all IP addresses of all subnets in the region:
$ gcloud compute routers nats create nat1 --router=my-router
--auto-allocate-nat-external-ips --nat-all-subnet-ip-ranges
$ gcloud compute routers nats create nat1 --router=my-router \
--auto-allocate-nat-external-ips --nat-all-subnet-ip-ranges
Specify IP addresses for NAT: Each IP address is the name of a reserved
static IP address resource in the same region.
$ gcloud compute routers nats create nat1 --router=my-router
--nat-external-ip-pool=ip-address1,ip-address2
$ gcloud compute routers nats create nat1 --router=my-router \
--nat-external-ip-pool=ip-address1,ip-address2
Specify subnet ranges for NAT:
@ -40,9 +40,10 @@ EXAMPLES
subnets in the region for the given VPC network. You can restrict which
subnet primary and secondary ranges can use NAT.
$ gcloud compute routers nats create nat1 --router=my-router
--auto-allocate-nat-external-ips
--nat-custom-subnet-ip-ranges=subnet-1,subnet-3:secondary-range-1
$ gcloud compute routers nats create nat1 --router=my-router \
--auto-allocate-nat-external-ips \
--nat-custom-subnet-ip-ranges=subnet-1,\
subnet-3:secondary-range-1
POSITIONAL ARGUMENTS
NAME

View file

@ -17,9 +17,9 @@ EXAMPLES
the CIDR Range "203.0.113.0/24".
$ gcloud compute routers nats rules create 1 --nat=my-nat \
--router=my-router --region=us-central1
--match='inIpRange(destination.ip, "203.0.113.0/24")'
--source-nat-active-ips=a1
--router=my-router --region=us-central1 \
--match='inIpRange(destination.ip, "203.0.113.0/24")' \
--source-nat-active-ips=a1
POSITIONAL ARGUMENTS
RULE_NUMBER

View file

@ -19,9 +19,9 @@ EXAMPLES
new connections matching Rule 1 in NAT nat-1, run:
$ gcloud compute routers nats rules update 1 --nat=nat1 \
--router=my-router --region=us-central1
--source-nat-drain-ips=address-1
--source-nat-active-ips=address-2
--router=my-router --region=us-central1 \
--source-nat-drain-ips=address-1 \
--source-nat-active-ips=address-2
POSITIONAL ARGUMENTS
RULE_NUMBER

View file

@ -32,9 +32,10 @@ DESCRIPTION
EXAMPLES
Change subnetworks and IP address resources associated with NAT:
$ gcloud compute routers nats update nat1 --router=my-router
--nat-external-ip-pool=ip-address2,ip-address3
--nat-custom-subnet-ip-ranges=subnet-2,subnet-3:secondary-range-2
$ gcloud compute routers nats update nat1 --router=my-router \
--nat-external-ip-pool=ip-address2,ip-address3 \
--nat-custom-subnet-ip-ranges=subnet-2,\
subnet-3:secondary-range-2
Change minimum default ports allocated per VM associated with NAT:
@ -43,18 +44,18 @@ EXAMPLES
Change connection timeouts associated with NAT:
$ gcloud compute routers nats update nat1 --router=my-router
--udp-mapping-idle-timeout=60s
--icmp-mapping-idle-timeout=60s
--tcp-established-connection-idle-timeout=60s
--tcp-transitory-connection-idle-timeout=60s
$ gcloud compute routers nats update nat1 --router=my-router \
--udp-mapping-idle-timeout=60s --icmp-mapping-idle-timeout=60s \
--tcp-established-connection-idle-timeout=60s \
--tcp-transitory-connection-idle-timeout=60s
Reset connection timeouts associated NAT to default values:
$ gcloud compute routers nats update nat1 --router=my-router
--clear-udp-mapping-idle-timeout --clear-icmp-mapping-idle-timeout
--clear-tcp-established-connection-idle-timeout
--clear-tcp-transitory-connection-idle-timeout
$ gcloud compute routers nats update nat1 --router=my-router \
--clear-udp-mapping-idle-timeout \
--clear-icmp-mapping-idle-timeout \
--clear-tcp-established-connection-idle-timeout \
--clear-tcp-transitory-connection-idle-timeout
POSITIONAL ARGUMENTS
NAME