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

0 votes
Sep 26 in GCP by Karan
• 5,090 points
29 views

1 answer to this question.

0 votes

To allow outbound traffic through a custom port, you need to set up a firewall rule

For example, the following steps set up a rule that allows outbound traffic on port 2525.

 Replace port 2525 with the custom port of your choice.

  1. In the Google Cloud Platform Console, go to the Create a firewall rule page.

  2. Choose a name for the firewall rule.

  3. Under Network, select the network that is hosting the VM instance that you intend to send email messages from.

  4. Under Direction of traffic, select Egress.

  5. Under Targets, choose the appropriate target for this rule. For example, you might choose Specified target tags if you want the rule to apply to instances that have a specific tag.

  6. Under Destination filter, set 0.0.0.0/0 if you want to allow egress traffic from the VM instance to any destination. If you want to limit the destination, enter another IP range here.

  7. Under Protocols and ports, select Specified protocols and ports, select tcp, and enter 2525.

  8. Click Create to save your changes.

answered Sep 26 by Sirajul
• 36,220 points

Related Questions In GCP

+1 vote
2 answers

How to open a port on google compute engine

You need to set the firewall rule ...READ MORE

answered Jul 9 in GCP by K sagar
146 views
0 votes
1 answer
0 votes
1 answer

Creating a SQL Server instance using Google Compute engine.

Google Compute Engine provides public images preconfigured with ...READ MORE

answered Sep 23 in GCP by Sirajul
• 36,220 points
33 views
0 votes
1 answer

How do i install gcloud compute?

The gcloud compute command-line tool enables you to easily ...READ MORE

answered Sep 23 in GCP by Sirajul
• 36,220 points
39 views