How to create a firewall rule to allow TCP UDP and ICMP traffic from a peer network to GCP network

0 votes
How to create a firewall rule to allow TCP, UDP and ICMP traffic from a peer network to GCP network?
Nov 13, 2019 in GCP by anonymous
• 19,610 points
451 views

1 answer to this question.

0 votes

You could probably execute the firewall-rules create command as shown: 

 gcloud  compute --project project-id firewall-rules create vpnrule1 \
    --network network \
    --allow tcp,udp,icmp \
    --source-ranges peer-source-range

If you have more than one peer network range, provide a comma-separated list in the source-ranges field (--source-ranges 192.168.1.0/24,192.168.2.0/24).

answered Nov 13, 2019 by Sirajul
• 59,090 points

Related Questions In GCP

+2 votes
1 answer

How to create a firewall rule in GCP Cloud?

Hi@akhtar, If you are using the default VPC ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,240 points
202 views
+2 votes
1 answer

How to create a project from GCP Cloud Shell?

Hi@akhtar, GCP shell has a command named gcloud. ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,240 points
255 views
+2 votes
1 answer

How to create a VPC on GCP from command line?

Hi@akhtar, To create a personal network, you need ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,240 points
297 views
+2 votes
1 answer

Create a firewall rule on GCP Cloud from command line.

Hi@akhtar, You need to configure GCP Cloud SDK ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,240 points
522 views
0 votes
1 answer

Migrate from Classic VPN to HA VPN gateways.

To move from Classic VPN to HA ...READ MORE

answered Nov 13, 2019 in GCP by Sirajul
• 59,090 points
290 views
0 votes
1 answer

How to create a High availability VPN gateway?

You can create a HA VPN gateway ...READ MORE

answered Nov 13, 2019 in GCP by Sirajul
• 59,090 points
448 views
0 votes
1 answer

Create a classic VPN using dynamic routing.

Classic VPN gateway and one tunnel using ...READ MORE

answered Nov 13, 2019 in GCP by Sirajul
• 59,090 points
379 views
0 votes
1 answer

Connect a HA VPN gateway to a Classic VPN gateway using a tunnel

GCP does not support creating a tunnel from a ...READ MORE

answered Nov 13, 2019 in GCP by Sirajul
• 59,090 points
298 views
0 votes
1 answer

How to allow outbound traffic on a custom port in gcp?

To allow outbound traffic through a custom ...READ MORE

answered Sep 26, 2019 in GCP by Sirajul
• 59,090 points
1,595 views