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.
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
- Open the Start menu and type
wf.msc, then press Enter. - In the left pane, click Windows Defender Firewall Properties.
- For each profile tab (Domain, Private, Public), set Firewall state to On.
- Set Inbound connections to Block and Outbound connections to Allow for the Public profile at minimum.
- Click Apply, then OK.
- Close the console and restart your computer.
Detailed Instructions
Check whether Windows Firewall is enabled
- Press
Win + R, typewf.msc, and press Enter. - Look at the left pane. You should see Windows Defender Firewall with Advanced Security.
- The middle pane shows the current state for each profile: Domain, Private, and Public.
- If any profile shows Off, follow the steps below to switch it on.
Enable Windows Firewall for all profiles
- In the same
wf.mscconsole, click Windows Defender Firewall Properties in the left pane. - You'll see three tabs at the top: Domain Profile, Private Profile, and Public Profile.
- 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.
- Click Apply after each tab, then OK when finished.
Understand the three network profiles
Windows applies firewall rules based on the type of network you're connected to:
- Domain — Applied when your laptop is joined to a corporate domain and connected over a trusted network.
- Private — Applied when you designate a home or office network as trusted (for example, your home Wi-Fi).
- Public — Applied automatically to any network you don't mark as trusted, such as café Wi-Fi, hotel networks, or airport hotspots. This is the strictest profile and the most important one for remote workers.
Review existing inbound rules
- In the left pane of
wf.msc, click Inbound Rules. - You'll see a long list of rules with columns for Name, Group, Profile, Action, and Enabled.
- Scroll through and look for any rules you don't recognise, especially those marked Enabled with Allow as the action.
- To disable a suspicious rule, right-click it and choose Disable Rule. Don't delete rules unless you're certain they're not required.
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.
- In
wf.msc, right-click Inbound Rules in the left pane and choose New Rule. - 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.
- Program — To allow a specific application. Browse to the executable file (usually a
- Follow the wizard prompts. For a port-based rule, you'll typically:
- Select TCP or UDP.
- Enter the specific port number (for example,
3389for 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.
- 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).
- Open the rule you just created by double-clicking it in the Inbound Rules list.
- Go to the Scope tab.
- Under Remote IP address, select These IP addresses and click Add.
- Enter the IP address or range you want to allow (for example,
203.0.113.0/24). - Click OK, then Apply.
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.
- In
wf.msc, right-click Windows Defender Firewall with Advanced Security at the top of the left pane. - Choose Export Policy.
- Save the
.wfwfile to a secure location such as your OneDrive or an encrypted USB drive. - 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.
- Press
Win + R, typewf.msc, and press Enter. - In the right pane, click Restore Defaults.
- Confirm any prompts that appear.
- Close the console and restart your computer.
Still Having Issues?
💻 Open a Ticket