How to Enable or Disable Windows Firewall Rules — VPSGrid Knowledge Base
English
EnglishBeta EspañolPortuguês (Brasil)Coming soonFrançaisComing soonDeutschComing soon
Client Area

How to Enable or Disable Windows Firewall Rules

KB-069, Windows VPS, VPSGrid, unmanaged 0 found helpful

How to Enable or Disable Windows Firewall Rules

Short answer

Open Windows Defender Firewall with Advanced Security, find the inbound rule (RDP, HTTP, HTTPS, or a custom port), and use Enable Rule / Disable Rule. Prefer targeted allows — do not turn off the entire firewall on an internet-facing VPS.

Overview

Use this GUI guide on a VPSGrid Windows VPS. For PowerShell commands, see Windows Firewall — PowerShell Rules (private article). If RDP breaks after changes, recover via noVNC — Console when SSH or RDP fails.

Before you change rules

Keep a working console session open. Misconfigured inbound rules are a common cause of RDP lockouts — How to Troubleshoot RDP Connection Issues.

1) Open the firewall console

  1. Connect with RDP as Administrator
  2. Open Windows Defender Firewall with Advanced Security (Start menu search or wf.msc)
  3. Select Inbound Rules in the left pane

2) Enable or disable an existing rule

  1. Find the rule (e.g. Remote Desktop - User Mode (TCP-In))
  2. Check the Profile column (Domain / Private / Public)
  3. Right-click → Enable Rule or Disable Rule
  4. Confirm the Action column shows Allow for rules you intend to use

For RDP, ensure the Remote Desktop rule is enabled for the profile your network uses. After reboot, Windows may classify the VPS network as Public — verify the rule is enabled for that profile too.

3) Create a new inbound allow rule (custom port)

  1. In Inbound Rules, click New Rule…
  2. Choose Port → TCP → enter the port (e.g. 8080, 80, 443)
  3. Select Allow the connection
  4. Apply to the profiles you need (often all three on a VPS)
  5. Name the rule clearly (e.g. Allow TCP 8080 App)

4) Common rules on a Windows VPS

ServicePortTypical rule
Remote Desktop3389/TCPRemote Desktop (TCP-In) — keep enabled if you use RDP
IIS / web app80, 443/TCPWorld Wide Web Services or custom port rules
SQL Server1433/TCPBlock from internet unless explicitly required

IIS hosting: Host a Website on Windows VPS with IIS.

5) Disable a rule safely

  • Disable only the rule you no longer need — not the entire firewall
  • Document what you changed (port, profile, rule name)
  • Test RDP and your application port immediately after changes

6) Optional: scoped allow (trusted IP only)

  1. Edit an inbound rule → Scope tab
  2. Under Remote IP address, add your office/home IP instead of Any IP address
  3. Apply only after confirming your IP is stable

Further hardening: How to Secure RDP on Windows VPS.

7) Temporary logging for diagnosis

  1. In the firewall console, open Properties for Domain/Private/Public profile
  2. Enable logging temporarily when diagnosing blocked connections
  3. Disable verbose logging after troubleshooting

Frequently Asked Questions

Should I disable the firewall entirely?

No on internet-facing VPS instances. Allow only the ports you need.

RDP worked until I changed firewall rules

Use noVNC console, re-enable Remote Desktop (TCP-In) for the active network profile, or revert the change.

GUI or PowerShell?

GUI is best for one-off rule toggles. PowerShell is better for repeatable automation — see article #45.

Related Articles

Need More Help?

Open a ticket at billing.vpsgrid.net with the port/rule you changed and whether noVNC login still works.

Was this answer helpful?

Related Articles