What is Windows Firewall in Windows 11?
On Windows 11, the firewall is managed through Windows Security and Windows Defender Firewall:
- Windows Security = basic on/off, network status, quick controls.
- Windows Defender Firewall with Advanced Security (wf.msc) = detailed inbound/outbound rules, ports, etc.
Below are different ways to open it.
Method 1 โ Open Firewall from Windows Search (Fastest for most users)
- Click the Start button
- Click the Windows icon on the taskbar.
- Or press the Windows key on your keyboard.
- Type
firewallinto the search box.- You will see several results like:
- Windows Defender Firewall with Advanced Security
- Windows Security
- You will see several results like:
- Open basic firewall settings (Windows Security)
- Click Windows Security.
- In Windows Security, click Firewall & network protection on the left or in the main tiles.
- Here you can see:
- Domain network
- Private network
- Public network
- Each shows if the firewall is On or Off.
- Open advanced firewall console
- From the search results, click Windows Defender Firewall with Advanced Security.
- This opens the classic MMC console where you see:
- Inbound Rules
- Outbound Rules
- Connection Security Rules
- Monitoring
Use this when you need more control (open ports, block apps, custom rules).
Method 2 โ Open Firewall via Windows Security App
- Open Settings
- Press Windows + I, or
- Click Start > Settings (gear icon).
- Go to Privacy & security
- In the left sidebar, click Privacy & security.
- Open Windows Security
- Under Security, click Windows Security.
- Then click the Open Windows Security button.
- Open Firewall section
- In Windows Security window, click Firewall & network protection.
- Now you can:
- See which network is Active (Domain/Private/Public).
- Check if the firewall is On for each profile.
- Click a profile to view or change its firewall state (if you have permission).
Method 3 โ Open Windows Defender Firewall from Control Panel
This uses the classic Control Panel view.
- Open Control Panel
- Press Windows + R to open Run.
- Type:
control - Press Enter.
- View by Category (optional but easier)
- In the top right, set View by: to Category if itโs not already.
- Go to System and Security
- Click System and Security.
- Open Windows Defender Firewall
- Click Windows Defender Firewall.
- Here you can:
- Turn Windows Defender Firewall on or off (left side).
- Allow an app through firewall.
- See notifications settings.
- Open advanced settings
- On the left side, click Advanced settings.
- This opens Windows Defender Firewall with Advanced Security (same as wf.msc).
Method 4 โ Open Advanced Firewall via Run (wf.msc)
If you just want the advanced console quickly:
- Open Run dialog
- Press Windows + R.
- Type the firewall console command
- Type:
wf.msc
- Type:
- Press Enter
- The Windows Defender Firewall with Advanced Security window opens.
- From here you can:
- Create new Inbound Rules (for apps, ports, predefined rules).
- Create new Outbound Rules.
- Export/import firewall policies (right-click the top โWindows Defender Firewall with Advanced Securityโฆโ node).
This is the main place admins work when they need detailed control.
Method 5 โ Open Firewall from Command Prompt or PowerShell
Sometimes you might be in a terminal already.
5.1 Open basic Windows Security firewall page
- Open Command Prompt or PowerShell
- Right-click the Start button and choose:
- Windows Terminal or
- Windows PowerShell or
- Command Prompt (if available).
- Right-click the Start button and choose:
- Run this command for the Windows Security firewall page:
start ms-settings:windowsdefender - In Windows Security, click Firewall & network protection.
5.2 Open advanced firewall console from terminal
Run this command in Command Prompt or PowerShell:
wf.msc
This will open Windows Defender Firewall with Advanced Security.
What You See Inside the Firewall Windows
A. Windows Security โ Firewall & network protection
Here you can:
- See current network profiles:
- Domain network โ usually corporate network with AD/Entra join.
- Private network โ trusted home network.
- Public network โ public Wi-Fi, hotels, etc.
- Check if firewall is On or Off for each profile.
- Click Allow an app through firewall (opens the classic UI).
- See Advanced settings link to open
wf.msc.
Note: On company-managed devices (Intune, Group Policy, etc.), some options may be greyed out.
B. Windows Defender Firewall with Advanced Security (wf.msc)
On the left panel youโll see:
- Inbound Rules
- Traffic coming into your PC.
- Rules decide which apps/ports are allowed or blocked from the outside.
- Outbound Rules
- Traffic going out from your PC to the network/internet.
- Connection Security Rules
- Advanced rules for IPsec, secure tunnels, etc.
- Monitoring
- View active rules and security associations.
From the right panel (Actions), you can:
- New Ruleโฆ โ create custom rules by program, port, predefined templates, or custom.
- Enable/Disable a selected rule.
- Export Policy โ save your firewall configuration.
- Import Policy โ load a saved configuration.
Quick Troubleshooting Tips
If you canโt find or open the firewall:
- Search spelling
- Make sure you typed firewall, Windows Security, or wf.msc correctly.
- Check user permissions
- Some advanced options require Administrator rights.
- Try right-clicking Windows Terminal or Command Prompt and choose Run as administrator.
- Managed devices (work/school)
- If your device is joined to a company (Intune, Group Policy, etc.),
- Firewall settings might be locked by your IT admin.
- You may see messages like โSome settings are managed by your organization.โ
- If your device is joined to a company (Intune, Group Policy, etc.),
- Firewall service disabled
- Rare, but if someone disabled the โWindows Defender Firewallโ service, the app may not work correctly.
- In that case, ask an admin to check services.
Short Summary
- Use Search and type
firewallto quickly open Windows Security or Windows Defender Firewall with Advanced Security. - Use Settings > Privacy & security > Windows Security > Open Windows Security > Firewall & network protection for basic management.
- Use Control Panel > System and Security > Windows Defender Firewall > Advanced settings or Run > wf.msc for advanced rules.
- You can also launch the firewall from Command Prompt/PowerShell using
wf.mscorstart ms-settings:windowsdefender.

