sodcalculator

10 Tech How-To

Firewall Not Working in Windows? Fixes That Work

Guide 10-60416 · Updated · Step by step

If your Windows firewall is not working, you’ll likely see security alerts, experience blocked or allowed traffic that doesn’t match your rules, or find that the service has stopped entirely. The fix usually involves restarting the Windows Defender Firewall service, resetting its rules, or checking for conflicts with third-party security software.

Why the Windows Firewall Stops Working

The Windows Defender Firewall (the built-in firewall in Windows 10 and 11) is a host-based filter that monitors and controls incoming and outgoing network traffic based on your rules. It can stop functioning for several distinct reasons:

  • Third-party antivirus or security suites often disable the Windows firewall to avoid conflicts, and they may not re-enable it when uninstalled.
  • Corrupted system files or a damaged firewall service registry entry.
  • Group Policy settings (on managed or corporate PCs) that override local firewall settings.
  • Malware that deliberately disables the firewall to allow remote access.
  • Windows Update failures that leave the firewall service in an inconsistent state.

First Steps: Check the Service and Status

Before making any changes, verify whether the firewall is actually off or just misconfigured. Open the Windows Security app (Start menu > “Windows Security”) and go to Firewall & network protection. You should see three network profiles (Domain, Private, Public) with a green checkmark. If any shows “Off,” click it and toggle the switch back on.

If the toggle is grayed out or turns off by itself, the underlying service is likely stopped. Press Win + R, type services.msc, and press Enter. Scroll to Windows Defender Firewall. Its Status should be “Running” and Startup Type should be “Automatic.” If not, right-click it, choose Start, then double-click it, set Startup type to Automatic, and click OK. Also confirm that Security Center and Base Filtering Engine services are running, as the firewall depends on them.

Reset the Firewall Rules

If the service is running but the firewall still isn’t filtering traffic (for example, you can’t share files, or apps that should be blocked are connecting), the rules may be corrupted or misconfigured. Resetting the firewall to its default state clears all custom rules and restores the standard blocks and allows.

  1. Open an elevated Command Prompt (right-click Start > “Terminal (Admin)” or “Command Prompt (Admin)”).
  2. Run netsh advfirewall reset and press Enter.
  3. Restart your PC.

This command restores the default outbound allow and inbound block behavior. You will lose any custom inbound rules you created (like port forwards for a game server), so note those down first.

Third-Party Security Software Conflicts

Many third-party antivirus programs (Norton, McAfee, Bitdefender, etc.) include their own firewall and disable the Windows one. This is usually intentional and safe, but problems arise when you uninstall the third-party product and the Windows firewall doesn’t get re-enabled. If you’ve removed such software and the Windows firewall is off, re-enable it as described above. If the firewall still won’t start, the third-party software may have left behind a driver or service. Use the vendor’s official removal tool (often called a “cleanup utility”) to fully remove leftover components, then restart and re-enable the Windows firewall.

Malware and System File Corruption

Malware that targets the firewall often disables it via registry changes or by stopping the service. If the firewall turns off by itself repeatedly, run a full offline scan with Microsoft Defender (or another reputable scanner) before you reset anything. After cleaning, check for corrupted system files:

  1. Open an elevated Command Prompt.
  2. Run sfc /scannow and wait for it to finish.
  3. Then run DISM /Online /Cleanup-Image /RestoreHealth.
  4. Restart and re-enable the firewall.

Group Policy Overrides

If your PC is joined to a domain or managed by an IT department, Group Policy can force the firewall off or restrict its settings. In that case, the Windows Security app will show a message like “Some settings are managed by your organization.” You cannot override this locally, and you should contact your system administrator. On a personal PC, you can check the local policy:

  1. Press Win + R, type gpedit.msc (only available on Pro/Enterprise editions), and press Enter.
  2. Navigate to Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall.
  3. Look for a policy that sets “Protect all network connections” to “Disabled.” If found, set it to “Not Configured” and restart.

Frequently Asked Questions

Why does my firewall keep turning off automatically?

This is almost always caused by third-party security software, malware, or a Group Policy setting. Check your antivirus settings to see if it manages the firewall, run a malware scan, and review local group policy as described above.

Can I use a third-party firewall instead of Windows Defender Firewall?

Yes. Many paid security suites include a firewall that is more configurable than the Windows one. If you install one, it will typically disable the Windows firewall automatically. Just make sure you only have one firewall active—running two can cause network conflicts and false alerts.

How do I check if my firewall is actually blocking something?

Open Windows Security > Firewall & network protection > “Allow an app through the firewall.” You’ll see a list of apps and whether they’re allowed on Private and Public networks. To test a specific port, you can use the netstat command or a port scanner, but the simplest check is to try the connection and see if it’s blocked.

Will resetting the firewall affect my internet connection?

No. The default Windows firewall rules allow all outbound traffic and block unsolicited inbound traffic. Your web browsing, email, and streaming will work normally after a reset. You may need to re-add custom inbound rules for apps like game servers or remote desktop.

Is the Windows firewall enough for home users?

For most home users, yes. The Windows Defender Firewall, combined with Windows Defender antivirus, provides solid baseline protection. It blocks unsolicited inbound connections and lets you control outbound rules if you configure them. Advanced users may prefer a third-party firewall for more granular control, but it’s not a necessity.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →