Home › Knowledgebase › KB-264

How to enable and configure Windows Firewall rules for safer remote working

Summary

This guide helps you troubleshoot and resolve: How to enable and configure Windows Firewall rules for safer remote working. Follow the steps below to fix the issue.

Quick Tip: Need immediate assistance? 💻 Open a Ticket

Common Causes

When you're working from home, at a café, or on the road, your laptop is exposed to networks you don't fully control. Windows Firewall is a built-in security feature that monitors incoming and outgoing traffic and blocks anything suspicious. This guide walks you through checking that it's enabled, understanding the default rules, and creating custom rules for the apps and ports your work relies on.

If you only need to perform a quick check, jump to the Quick Fix Steps below. For a deeper walkthrough, see the Detailed Instructions section.

Quick Fix Steps

  1. Open the Start menu and type wf.msc, then press Enter.
  2. In the left pane, click Windows Defender Firewall Properties.
  3. For each profile tab (Domain, Private, Public), set Firewall state to On.
  4. Set Inbound connections to Block and Outbound connections to Allow for the Public profile at minimum.
  5. Click Apply, then OK.
If you're unsure whether a setting change is safe, take a photo or screenshot of the current values before you modify them so you can revert if needed.

Detailed Instructions

Check whether Windows Firewall is enabled

  1. Press Win + R, type wf.msc, and press Enter.
  2. Look at the left pane. You should see Windows Defender Firewall with Advanced Security.
  3. The middle pane shows the current state for each profile: Domain, Private, and Public.
  4. If any profile shows Off, follow the steps below to switch it on.

Enable Windows Firewall for all profiles

  1. In the same wf.msc console, click Windows Defender Firewall Properties in the left pane.
  2. You'll see three tabs at the top: Domain Profile, Private Profile, and Public Profile.
  3. For each tab:
    • Set Firewall state to On (recommended).
    • Set Inbound connections to Block (default).
    • Set Outbound connections to Allow (default) unless your organisation requires stricter controls.
  4. Click Apply after each tab, then OK when finished.
Never set Outbound connections to Block across all profiles unless your IT team has explicitly configured exception rules. Doing so can prevent Windows Update, antivirus software, and business apps from functioning.

Understand the three network profiles

Windows applies firewall rules based on the type of network you're connected to:

To check which profile is currently active, open wf.msc and look at the middle pane under Windows Defender Firewall with Advanced Security. The active profile is indicated by a green check mark or the current state column. You can also go to Settings > Network & Internet > Properties for your connected network to see if it is set to Public or Private.
Avoid enabling inbound connections on the Public profile. Public networks such as café or hotel Wi-Fi are shared with strangers, and allowing inbound traffic can expose your laptop to unauthorised access and attacks from other devices on the same network.

Review existing inbound rules

  1. In the left pane of wf.msc, click Inbound Rules.
  2. You'll see a long list of rules with columns for Name, Group, Profile, Action, and Enabled.
  3. Scroll through and look for any rules you don't recognise, especially those marked Enabled with Allow as the action.
  4. To disable a suspicious rule, right-click it and choose Disable Rule. Don't delete rules unless you're certain they're not required.
Common safe entries include Core Networking, File and Printer Sharing, and rules published by Microsoft, your VPN client, or your antivirus software. If you're unsure about a rule, leave it alone and open a ticket for our team to review.

Create a custom inbound rule for a business application

If your team uses an application that needs to accept incoming connections (for example, a remote desktop tool, database server, or collaboration platform), you may need to create a specific rule.

  1. In wf.msc, right-click Inbound Rules in the left pane and choose New Rule.
  2. Choose the rule type:
    • Program — To allow a specific application. Browse to the executable file (usually a .exe).
    • Port — To allow traffic on a specific TCP or UDP port.
    • Predefined — To pick from a list of common Windows components.
    • Custom — For advanced combinations of program, protocol, port, and scope.
  3. Follow the wizard prompts. For a port-based rule, you'll typically:
    • Select TCP or UDP.
    • Enter the specific port number (for example, 3389 for Remote Desktop).
    • Choose Allow the connection.
    • Tick the profiles that should apply (Domain, Private, and/or Public).
    • Give the rule a clear name such as RDP - Work Laptop Only.
  4. Click Finish.

Restrict a rule to specific remote IP addresses

For an extra layer of protection, you can limit an inbound rule so it only accepts traffic from known IP addresses (such as your office network).

  1. Open the rule you just created by double-clicking it in the Inbound Rules list.
  2. Go to the Scope tab.
  3. Under Remote IP address, select These IP addresses and click Add.
  4. Enter the IP address or range you want to allow (for example, 203.0.113.0/24).
  5. Click OK, then Apply.
If your home internet uses a dynamic IP address, restricting rules to a single IP can lock you out after the address changes. Use this approach only when your remote IP is stable, such as a fixed office connection.

Export and back up your firewall rules

Before making significant changes, it's worth exporting your current configuration so you can restore it if something goes wrong.

  1. In wf.msc, right-click Windows Defender Firewall with Advanced Security at the top of the left pane.
  2. Choose Export Policy.
  3. Save the .wfw file to a secure location such as your OneDrive or an encrypted USB drive.
  4. To restore, right-click the same node and choose Import Policy.

Reset Windows Firewall to default settings

If you've made changes that have broken connectivity and you can't pinpoint the cause, resetting to defaults is often the fastest path back to a known-good state.

  1. Press Win + R, type wf.msc, and press Enter.
  2. In the right pane, click Restore Default Policy.
  3. When prompted, click Yes to confirm that you want to restore all firewall rules to their default settings.
  4. Close the console. The changes take effect immediately.
  5. If you previously exported a backup .wfw file and want to restore your custom configuration instead, right-click Windows Defender Firewall with Advanced Security at the top of the left pane, choose Import Policy, and select your saved file.

Troubleshooting common firewall issues

Application is blocked from connecting

If a business application cannot connect to the internet or receive incoming traffic, check whether an inbound or outbound rule is blocking it. Open wf.msc, review Inbound Rules and Outbound Rules for entries matching the application name or publisher. Temporarily disable any suspicious rules to test connectivity, then create a specific allow rule if required.

Lost connectivity after changing firewall rules

If you lose network access after modifying firewall settings, reset Windows Firewall to default settings using the steps above. This removes all custom rules and restores the Microsoft defaults. If you exported a .wfw backup before making changes, use Import Policy to restore your previous configuration.

Settings appear greyed out or cannot be changed

In managed small business environments, your organisation may use Group Policy or Microsoft Intune to control Windows Firewall settings centrally. If options are greyed out or your changes revert after restarting, local settings are likely being overridden by a policy applied by your IT team. In this case, open a ticket and request a review of the firewall policy for your device.

If you break connectivity and cannot restore access, open a ticket with our support team. Include details of the changes you made and any error messages you received so we can help you recover quickly.

Still Having Issues?

Need more help? If the issue persists after trying these steps, please open a support ticket and our team will assist you.

💻 Open a Ticket