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
• 11,170 points
152 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
• 55,340 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, 2019 in GCP by Sirajul
• 55,340 points
367 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, 2019 in GCP by Sirajul
• 55,340 points
108 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, 2019 in GCP by Sirajul
• 55,340 points
355 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
• 55,340 points
114 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
• 55,340 points
187 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
• 55,340 points
192 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
• 55,340 points
151 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
• 55,340 points
697 views