How to create a GCP firewall rule: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Creating a firewall rule == * Login to the Firewall rules page: : https://console.cloud.google.com//networking/firewalls/list * Click on "Create Firewall Rule" :* Name: Spe..." |
No edit summary |
||
Line 3: | Line 3: | ||
: https://console.cloud.google.com//networking/firewalls/list | : https://console.cloud.google.com//networking/firewalls/list | ||
* Click on "Create Firewall Rule" | * Click on "Create Firewall Rule" | ||
:* Name: Specify here a name for the new firewall rule (in lowercase) | :* '''Name''': Specify here a name for the new firewall rule (in lowercase) | ||
:* Network: Select the relevant Google Virtual Private Cloud (VPC) Network | :* '''Network''': Select the relevant Google Virtual Private Cloud (VPC) Network | ||
:* Priority: | :* '''Priority''': Specify the Priority of the rule | ||
:: Note: The lower the number, the higher the priority | :: Note: The lower the number, the higher the priority | ||
:* Direction of traffic: Choose either ingress (inbound traffic) or egress (outbound traffic) | :* '''Direction of traffic''': Choose either ingress (inbound traffic) or egress (outbound traffic) | ||
:* Action on match: Choose either allow or deny | :* '''Action on match''': Choose either allow or deny | ||
:* Targets: Select "All instances in the network" (destination of the specific firewall rule) | :* '''Targets''': Select "All instances in the network" (destination of the specific firewall rule) | ||
:: For more information, see: https://cloud.google.com/vpc/docs/firewalls#rule_assignment | :: For more information, see: https://cloud.google.com/vpc/docs/firewalls#rule_assignment | ||
:* Source filter: Select "IP ranges" | :* '''Source filter''': Select "IP ranges" | ||
:* Source IP ranges: Specify the organization public IP subnet range or specify public IP CIDR | :* '''Source IP ranges''': Specify the organization public IP subnet range or specify public IP CIDR | ||
:: For more information, see: https://cloud.google.com/vpc/docs/firewalls | :: For more information, see: https://cloud.google.com/vpc/docs/firewalls | ||
:* Protocols and ports: Specify the relevant destination port (for example: tcp:22) | :* '''Protocols and ports''': Specify the relevant destination port (for example: tcp:22) | ||
:: For more information, see: https://cloud.google.com/vpc/docs/firewalls#protocols_and_ports | :: For more information, see: https://cloud.google.com/vpc/docs/firewalls#protocols_and_ports | ||
* Click on "Create" | * Click on "Create" | ||
* Logoff the Google Cloud Platform management console | * Logoff the Google Cloud Platform management console |
Latest revision as of 11:47, 15 May 2018
Creating a firewall rule
- Login to the Firewall rules page:
- Click on "Create Firewall Rule"
- Name: Specify here a name for the new firewall rule (in lowercase)
- Network: Select the relevant Google Virtual Private Cloud (VPC) Network
- Priority: Specify the Priority of the rule
- Note: The lower the number, the higher the priority
- Direction of traffic: Choose either ingress (inbound traffic) or egress (outbound traffic)
- Action on match: Choose either allow or deny
- Targets: Select "All instances in the network" (destination of the specific firewall rule)
- For more information, see: https://cloud.google.com/vpc/docs/firewalls#rule_assignment
- Source filter: Select "IP ranges"
- Source IP ranges: Specify the organization public IP subnet range or specify public IP CIDR
- For more information, see: https://cloud.google.com/vpc/docs/firewalls
- Protocols and ports: Specify the relevant destination port (for example: tcp:22)
- For more information, see: https://cloud.google.com/vpc/docs/firewalls#protocols_and_ports
- Click on "Create"
- Logoff the Google Cloud Platform management console