Using Console
Using CLI
Using Python
google-cloud-compute
library to create a new firewall rule that blocks the Windows SMB port (TCP port 445) on all instances in your GCP project.
your-project-id
with your GCP project ID and us-central1-a
with your preferred zone.