mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-16 12:22:03 +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
|
|
@ -25,15 +25,17 @@ EXAMPLES
|
|||
To create a firewall rule allowing incoming TCP traffic on port 8080, run:
|
||||
|
||||
$ gcloud beta compute firewall-rules create FooService \
|
||||
--allow=tcp:8080
|
||||
--description="Allow incoming traffic on TCP port 8080" --direction=INGRESS
|
||||
--allow=tcp:8080 \
|
||||
--description="Allow incoming traffic on TCP port 8080" \
|
||||
--direction=INGRESS
|
||||
|
||||
To create a firewall rule that allows TCP traffic through port 80 and
|
||||
determines a list of specific IP address blocks that are allowed to make
|
||||
inbound connections, run:
|
||||
|
||||
$ gcloud beta compute firewall-rules create "tcp-rule" --allow=tcp:80
|
||||
--source-ranges="10.0.0.0/22,10.0.0.0/14" --description="Narrowing TCP traffic"
|
||||
$ gcloud beta compute firewall-rules create "tcp-rule" \
|
||||
--allow=tcp:80 --source-ranges="10.0.0.0/22,10.0.0.0/14" \
|
||||
--description="Narrowing TCP traffic"
|
||||
|
||||
To list existing firewall rules, run:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue