Reputation: 364
I accidentally messed up Windows Firewall of my VPS and now I can't connect using RDP anymore. Is there a way to reset the firewall rules without deleting and creating a new instance? Already checked the FAQs and found nothing about it, same goes for the cloud shell. The firewall rules that I can see on the web manager seems different of my Operational System firewall.
Upvotes: 1
Views: 796
Reputation: 39
The best way is to use Google Cloud console.
Go to the Windows Instance Edit the Instance and add the following key/value pair to Custom Metadata section
key is: windows-startup-script-cmd value: netsh advfirewall set allprofiles state off
This resets the firewall to Off when booting and you can get back in with the RDP client as before.
Upvotes: 1
Reputation: 20
Please open Cloud Shell on Google Cloud Platform web console.
Type: gcloud compute firewall-rules create openrdp --allow=tcp:3389
Try to connect your machine again.
Upvotes: 0