Meeting friends with needles is an attitude towards life, and it is also a style in the VPS industry... Some friends just use a probe when they get the machine, and then eat the dust. We do not advocate this luxurious way of using VPS~ However, when we are in GCP installed the environment and found that it could not be accessed, so we were confused. At this time, we need to understand the firewall rules and open relevant ports so that our probes or web pages can be accessed.
First, we click on the menu, VPC network, firewall rules, as shown in the figure below.
gcp_fw_01
Then, we create a firewall rule, fill in a name, and pay attention to the following settings.
gcp_fw_02
Here we take opening port 80 as an example. The source filter condition is the IP address range, then write the source IP range, specify the protocol and port, and open this according to your own needs. Related ports.
gcp_fw_04
If you don’t understand, you can also use the picture below. All are allowed. However, this is not very safe. It is only for testing. In actual production, we only open necessary related ports. That's it.
gcp_fw_03
After completing the filling, click Create, and then try to access it again.
Extended reading:
GCPGoogle Cloud applies for a free trial of US$300 and activates VPS https://www.zrblog.net/19994.html
GCP(Google Cloud Server) How to log in using SSH clienthttps://www.zrblog.net/19999.html

postid
11482

Leave a Reply