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
1,403 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,230 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 23, 2020 in GCP by MD
• 95,440 points
1,263 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 23, 2020 in GCP by MD
• 95,440 points
1,701 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,440 points
1,241 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,440 points
1,998 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,230 points
1,045 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,230 points
1,083 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,230 points
843 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,230 points
972 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,230 points
4,448 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP