mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-20 13:10:18 +00:00
gcloud: Tue Mar 1 21:43:54 UTC 2022
This commit is contained in:
parent
c1c3b75313
commit
21878eea72
1018 changed files with 4838 additions and 3409 deletions
|
|
@ -26,14 +26,14 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
Auto-allocate NAT for all IP addresses of all subnets in the region:
|
||||
|
||||
$ gcloud beta compute routers nats create nat1 --router=my-router
|
||||
--auto-allocate-nat-external-ips --nat-all-subnet-ip-ranges
|
||||
$ gcloud beta 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 beta compute routers nats create nat1 --router=my-router
|
||||
--nat-external-ip-pool=ip-address1,ip-address2
|
||||
$ gcloud beta compute routers nats create nat1 --router=my-router \
|
||||
--nat-external-ip-pool=ip-address1,ip-address2
|
||||
|
||||
Specify subnet ranges for NAT:
|
||||
|
||||
|
|
@ -41,9 +41,10 @@ EXAMPLES
|
|||
subnets in the region for the given VPC network. You can restrict which
|
||||
subnet primary and secondary ranges can use NAT.
|
||||
|
||||
$ gcloud beta 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 beta 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
|
||||
|
|
|
|||
|
|
@ -17,9 +17,9 @@ EXAMPLES
|
|||
the CIDR Range "203.0.113.0/24".
|
||||
|
||||
$ gcloud beta 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
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ EXAMPLES
|
|||
new connections matching Rule 1 in NAT nat-1, run:
|
||||
|
||||
$ gcloud beta 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
|
||||
|
|
|
|||
|
|
@ -32,9 +32,10 @@ DESCRIPTION
|
|||
EXAMPLES
|
||||
Change subnetworks and IP address resources associated with NAT:
|
||||
|
||||
$ gcloud beta 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 beta 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 beta 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 beta 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 beta 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 beta 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue