Windows Security shows a red X next to Firewall & network protection, saying the firewall is off. You turn it on, and a few hours or a restart later it is off again. When Windows PAGODA127 RESMI 10 Windows Firewall keeps turning off, another program, a policy, or malware is changing the setting behind your back.
Windows Defender Firewall can be turned off legitimately when another security product with its own firewall takes over. In that case Windows Security should name that product as the active firewall. Problems begin when the replacement is uninstalled incompletely, or when nothing is protecting the PC.
Optimisation tools, game boosters, VPN software, and some malware disable the firewall service or set policies to keep it off.
Finding what switches it off restores reliable protection.
What Usually Triggers It
The firewall turns off for these reasons:
- Third-party security software disabled Windows Firewall, or left settings behind after removal.
- A Group Policy or registry value forces the firewall off.
- The Windows Defender Firewall service is disabled or stopped.
- Malware switched it off to communicate freely.
If Windows Security lists another firewall provider, check whether that product is still installed and working.
First Steps to Try
Turn it on and check providers.
- Open Windows Security > Firewall & network protection.
- Turn on the firewall for Domain, Private, and Public networks.
- Check whether another firewall provider is listed, and confirm that program is current.
- Uninstall leftover security software with its official removal tool.
- Restart and check whether the firewall stays on.
Look at the time the firewall switches off. If it happens right after a specific program starts or a VPN connects, that program is the prime suspect.
If the Problem Continues
Check service, policies, and malware.
- In services.msc, check that the Windows Defender Firewall service is running with Startup type Automatic.
- Open Command Prompt as administrator and run netsh advfirewall show allprofiles to see the current state.
- On Pro editions, open gpedit.msc and check Computer Configuration > Administrative Templates > Network > Network Connections > Windows Defender Firewall for policies set to disable it.
- Run a Full scan and a Microsoft Defender Offline scan.
- Restore defaults with netsh advfirewall reset if settings appear damaged, then turn the firewall on.
Protect Your Data First
A firewall that keeps switching off can be a sign of infection. Change important passwords from a clean device if malware is found, and avoid public Wi-Fi until the firewall stays on.
The Bottom Line
A firewall that turns itself off is being disabled by software, policy, or malware. Turn it on, remove leftover security tools, check the service and policies, scan for malware, and reset firewall defaults if needed.