How to allow outbound traffic on a custom port in gcp

0 votes
Sep 26, 2019 in GCP by Karan
• 19,610 points
5,056 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, 2019 by Sirajul
• 59,230 points

Related Questions In GCP

0 votes
1 answer

How to create a custom role from a YAML file in GCP?

Hi@akhtar, You can create an IAM role in ...READ MORE

answered Nov 10, 2020 in GCP by MD
• 95,460 points
1,208 views
0 votes
1 answer

How can I tell how much it costs to run a low traffic WordPress site on GCP?

Running a 2x g1-small (1 vCPU, 1.7 ...READ MORE

answered Apr 6, 2022 in GCP by Korak
• 5,820 points
574 views
+1 vote
2 answers

How to open a port on google compute engine

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

answered Jul 10, 2019 in GCP by K sagar
3,985 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, 2019 in GCP by Sirajul
• 59,230 points
2,918 views
0 votes
1 answer
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, 2019 in GCP by Sirajul
• 59,230 points

edited Jun 16, 2023 by Khan Sarfaraz 1,259 views
0 votes
1 answer
0 votes
1 answer
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