This question is old, and Carlos Rojas will answer well, but I think I should post a few things to keep in mind when trying to open ports.
The first thing to remember is that the Networking section has been renamed VPC Networking . Therefore, if you are trying to figure out where the " Firewall Rules " option is available, look at the VPC network .
Secondly, if you are trying to open ports on a virtual ufw Linux, in no case try to open a port with ufw command. I tried using this and lost SSH access to the virtual machine. So do not repeat my mistake.
Thirdly, if you are trying to open ports on a Windows virtual machine, you need to create firewall rules inside the virtual machine also in the Windows firewall along with the VPC network → Firewall Rules . The port must be open in both firewall rules, unlike the Linux virtual machine. Therefore, if you are not accessing the port from outside the virtual machine, check if you opened the port in the GCP console and the Windows firewall.
Last (obvious): Do not open ports unnecessarily. Close the ports as soon as you no longer need them.
I hope this answer is helpful.
noob May 14 '18 at 5:19 2018-05-14 05:19
source share