Using Console
Using CLI
gcloud compute firewall-rules list | grep RDP
This will list all the firewall rules that contain the keyword “RDP.”
gcloud compute firewall-rules delete [FIREWALL_RULE_NAME]
Replace [FIREWALL_RULE_NAME] with the name of the firewall rule that allows RDP traffic.
gcloud compute firewall-rules list | grep RDP
This command should not return any results.
nmap -Pn -p 3389 [INSTANCE_IP_ADDRESS]
Replace [INSTANCE_IP_ADDRESS] with the IP address of the instance you want to check. This command will scan the instance for open ports and should not return any results for port 3389 (RDP).
Using Python