![]() |
VOOZH | about |
Virtual machines (VMs) on the Google Cloud Platform simulate powerful desktop computers in the cloud. They are essential because they allow it to be easy-to use apps and software without having to pay for hardware. This common use involves things like hosting websites, maintaining databases, and organizing information analysis work.
Administrators consider firewall rules for Google Cloud Platform (GCP) as a means of protecting their virtual machines (VMs). They decide which traffic can be allowed to the enter or exit your virtual machine instances based on established requirements. By imposing firewall rules that control who may use your virtual machines (VMs) and the kinds of data that can travel through them, users can prevent malicious attempts and unauthorized access to your applications.
Step 1: Open GCP console and click on VPC network and click on firewall
👁 vpc network firewallStep 2: Click on create firewall rule
👁 create firewall ruleStep 3: Provid the firewall rule details like priority, Target tags, Source IP and protocol with ports. Below image I have opened 8080, 8070 ports with TCP protocols using the jenkins tag.
👁 portStep 4: I have GCP VM with the name gfg-vm edit that VM and verify the which tags is available on network tags section. Below image shows no tags available.
👁 editStep 5: Enter the tags which you have created on firewall rule enter the tag under the network tag section. After that click on save.
👁 edit gfg vm instanceStep 6: Verify the tags is attached on not. Below image shows tags successfully atached.
👁 detailsIn addition to networking features like VPCs, firewall rules, and network tags that offer essential control and security, GCP virtual machines (VMs) offer adaptable computing resources for a range of workloads. Users may improve the performance, scalability, and reliability of their cloud infrastructure by understanding and using these components with effectiveness.