Reset Firewall Settings in Windows 11
In this article
To reset firewall settings in Windows 11, open Windows Security > Firewall & network protection, click Restore firewalls to default, then confirm. This removes all custom rules and restores Microsoft's default firewall behavior. You'll need administrator access, and any third-party firewall should be disabled first to avoid conflicts.
What You'll Need
- An administrator account on the Windows 11 PC.
- If you use a third-party firewall (e.g., Norton, McAfee), temporarily disable or uninstall it—otherwise it may re-add its own rules after the reset.
- Optional: a backup of your current firewall rules if you plan to re-apply them later (use the export feature in Windows Defender Firewall with Advanced Security).
Step-by-Step
- Press Windows + I to open Settings, or click the Start button and select the gear icon.
- In the left sidebar, click Privacy & security. (If you don't see that, look for Update & Security—labels vary slightly by Windows version.)
- Click Windows Security in the main pane.
- Click Firewall & network protection. This opens the Windows Security app.
- Scroll down to the bottom of the Firewall & network protection page and click Restore firewalls to default.
- A confirmation dialog appears, warning that all firewall rules will be reset. Click Restore defaults to proceed.
- Windows will apply the default firewall settings. This usually takes a few seconds. You'll see a brief confirmation that the reset was successful.
- If you had a third-party firewall, re-enable it now (or reinstall it) and check its own settings to ensure it doesn't conflict.
After the reset, your firewall will allow all outbound connections by default and block unsolicited inbound connections. Apps that previously required custom inbound rules (like game servers or remote desktop) will need new rules added manually.
Common Mistakes
- Not running as administrator: If your account isn't an admin, you'll get an error or the option will be greyed out. Sign in with an admin account or use the admin credentials when prompted.
- Forgetting third-party firewalls: If a third-party firewall is active, it may override Windows Firewall or re-add its own rules after the reset, making it seem like the reset didn't work.
- Resetting the wrong profile: The default reset applies to all three network profiles (Domain, Private, Public) at once. You can't reset just one profile from this screen—use the advanced firewall console if you need per-profile control.
- Expecting to undo the reset: There's no built-in undo. If you had custom rules, they're gone permanently unless you exported them beforehand.
- Clicking 'Restore defaults' on a domain network: If your PC is joined to a corporate domain, your IT policy may override the reset. In that case, contact your system administrator.
Tips
- Export your rules first: Open Windows Defender Firewall with Advanced Security (search for it in the Start menu), right-click on Inbound Rules or Outbound Rules, and choose Export Policy to save a backup. You can import it later if needed.
- Know what you're losing: The reset removes all custom inbound and outbound rules, including those added by apps during installation. After resetting, you may need to re-allow apps like file sharing, media streaming, or game services when Windows prompts you.
- Use the advanced console for fine control: If you only need to fix a specific issue, consider deleting just the problematic rule instead of a full reset. Search for “Windows Defender Firewall with Advanced Security” to manage rules individually.
- Check network profile after reset: Make sure your network is set to the correct profile (Private for home/work, Public for untrusted networks). Go to Firewall & network protection and click on the active network to verify.
Troubleshooting
If the reset button is greyed out or you get an error:
- Make sure you're signed in with an administrator account. You can check by going to Settings > Accounts > Your info—if it says “Administrator” under your name, you're good. If not, switch to an admin account or ask an admin to do the reset.
- Run Windows Security as an administrator: right-click the Start button, select Terminal (Admin) or Windows PowerShell (Admin), and type
start windowsdefender:to open Windows Security with elevated privileges.
If the reset completes but problems persist:
- Restart your PC. Some firewall changes only take effect after a reboot.
- Check if a third-party firewall is still active. Temporarily disable it, then test your network connection.
- Run the built-in network troubleshooter: Settings > System > Troubleshoot > Other troubleshooters > Network Adapter > Run.
If you still can't access the internet after reset:
- Open Command Prompt as administrator and run
netsh advfirewall reset—this is an alternative method that does the same thing. - Check if your router or ISP is blocking traffic—try another device on the same network.
- If the issue started after a Windows update, try restoring the firewall settings from a system restore point (if you have one).
Frequently Asked Questions
Will resetting the firewall affect my internet connection?
Usually no. Outbound connections (like browsing) are allowed by default. Only custom inbound rules are lost, which could affect services like remote desktop or game hosting.
Does this reset also clear Windows Defender's other security settings?
No. It only resets the firewall rules. Other security features like antivirus, ransomware protection, and app controls remain unchanged.
Can I undo the reset?
There's no built-in undo. Your only option is to re-add the rules manually or import a backup if you exported the policy beforehand.
Why would I need to reset the firewall?
Common reasons: a misconfigured rule is blocking an app, you've inherited a PC with lots of custom rules, or you suspect malware has modified firewall settings.
Will this delete my VPN or proxy settings?
No. VPN and proxy settings are separate from firewall rules. They remain untouched.
Is it safe to reset the firewall regularly?
Yes, but it's unnecessary unless you have a specific problem. Frequent resets mean you'll have to re-add any custom rules you rely on.