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 in GCP by anonymous
• 6,670 points
27 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 by Sirajul
• 40,990 points

Related Questions In GCP

0 votes
1 answer

How to create a cloud storage bucket in GCP?

Buckets are the basic containers that hold your ...READ MORE

answered Oct 23 in GCP by Sirajul
• 40,990 points
30 views
0 votes
1 answer

How to create a file on GCP storage?

In case you are using Cloud storage ...READ MORE

answered Nov 5 in GCP by Sirajul
• 40,990 points
26 views
0 votes
1 answer
0 votes
1 answer

How do I configure firewall rules to allow RDP traffic?

Compute Engine automatically provisions new projects with ...READ MORE

answered Nov 8 in GCP by Sirajul
• 40,990 points
38 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Create a classic VPN using dynamic routing.

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

answered Nov 13 in GCP by Sirajul
• 40,990 points
29 views
0 votes
1 answer
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 in GCP by Sirajul
• 40,990 points
55 views