Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Firewall off notification #554

Closed
privacyguy123 opened this issue Nov 2, 2019 · 33 comments
Closed

Windows Firewall off notification #554

privacyguy123 opened this issue Nov 2, 2019 · 33 comments
Labels

Comments

@privacyguy123
Copy link

any way to stop this from happening? ive got nofications for security centre off but its still warning me when simplewall turns it off at startup

@henrypp
Copy link
Owner

henrypp commented Nov 6, 2019

Hi,

add this lineIs DisableWindowsFirewallChecked=false into simplewall.ini and restart SW.

@cloudgreen
Copy link

@ltguillaume Does adding the line above in simplewall.ini prevent the Windows 10 notification below?

image

@ltguillaume
Copy link
Contributor

No idea, I've never had this notification.

@cloudgreen
Copy link

cloudgreen commented Nov 24, 2019

That's Windows 10 complaining about Windows Firewall being turned off (since that's the recommended action when using Simplewall). I thought this thread was about that notification. :)

I have been wondering about how to get rid of that... :( I think I'll give one of the tips in this Serverfault thread a try...

@ltguillaume
Copy link
Contributor

Can't you just tell Windows to stop giving those messages in the Security & Maintenance dialog?

@ltguillaume
Copy link
Contributor

@cloudgreen Sorry, I was wrong: the thing is that you can only tell Windows to stop whining about the Defender Firewall's being disabled if you have removed Windows Defender altogether. Otherwise the option is greyed out, so you can't uncheck it.

@cloudgreen
Copy link

@cloudgreen Sorry, I was wrong: the thing is that you can only tell Windows to stop whining about the Defender Firewall's being disabled if you have removed Windows Defender altogether. Otherwise the option is greyed out, so you can't uncheck it.

Thanks for following up, @ltguillaume!

Yeah, there are a lot of different reports around the web about how to turn off the Windows Firewall warning, many include editing Group Policy settings, but many say it doesn't work. Your tip is probably the most likely one to be correct! But I would like to have the cake (Defender) and skip the warning... :)

@ltguillaume
Copy link
Contributor

Yeah, it's ridiculous. Way to go, MS....

@qupig
Copy link

qupig commented Mar 8, 2020

Hi,

add this lineIs DisableWindowsFirewallChecked=false into simplewall.ini and restart SW.

@henrypp
I notice that the latest version of simplewall.ini already has this line IsDisableWindowsFirewallChecked Is this the same as DisableWindowsFirewallChecked you mentioned?

If I understand correctly, this is the same as the Turn off Windows Firewall checkbox when Enable Filtering.

I checked Turn off Windows Firewall, but the notification warning pops up every time I restart the system and from time to time [Turn on Windows Firewall] like #554 (comment)

image

I found that I cannot turn off this notification in the Windows Notification Center or Security Center. I tried to turn off notifications in the windows firewall settings, but it didn't work, Any way to turn off this notifications?

It pops up often and is accompanied by sounds, very annoying, I can't disable the entire notification center because of this.

@cloudgreen
Copy link

I have not been able to figure out how to stop the "Windows Firewall turned off" notification, without turning of the entire Windows Defender. (You can remove the sound in System Sounds, though...)

@qupig
Copy link

qupig commented Mar 9, 2020

@cloudgreen Do you mean to be able to delete sounds for specific app notifications, or delete all notification sounds? Obviously the latter is not the solution we need.

@cloudgreen
Copy link

@cloudgreen Do you mean to be able to delete sounds for specific app notifications, or delete all notification sounds? Obviously the latter is not the solution we need.

I meant no system sounds at all, by selecting the "No sounds" sound scheme. (That's how I always roll it.) But my sound comment was merely a small "afterthought", the sound is the least of this problem... :)

I am also interested in getting rid of the Firewall notification message itself.

@mizzuri
Copy link

mizzuri commented Apr 29, 2020

Try the following (not a proper solution but ...)

Local Group Policy Editor > Local Computer Policy > Computer Configuration > Administrative Templates > All Settings

Disable the following two policies:

SharedScreenshot

Edit: I think that will disable functions of the Windows Defender Firewall, without the ability to turn it back on from the Windows Security Dashboard, until of course the policies are restored.

Edit2: The red cross on the Windows Defender icon in the taskbar will turn to the green check as well. ;)

@ltguillaume
Copy link
Contributor

@mizzuri Errr yeah that's not gonna work: it will also cause simplewall's rules to be disabled.

@mizzuri
Copy link

mizzuri commented May 13, 2020

@mizzuri Errr yeah that's not gonna work: it will also cause simplewall's rules to be disabled.

Not for me though. Actually isn't simplewall using its own rules?

@ltguillaume
Copy link
Contributor

ltguillaume commented May 13, 2020

I tried to set these policies to disabled on Windows 10 19H2, then tried blocking Ungoogled-Chromium in simplewall. Result: it still opened all pages I tried. I even refreshed all the rules in simplewall (F5). It was only after resetting the two policies that Ungoogled-Chromium's access was blocked simplewall's rule.

Could you please test this in a similar way on your system?

@mizzuri
Copy link

mizzuri commented May 14, 2020

@ltguillaume

Tested in the following ways while having set those two policies to disabled:

Windows version: 1909 (Build 18363.815, x86_64)

  1. I downloaded a new, never before used, portable version of FileZilla (an FTP client). Right after I opened filezilla.exe, the usual simplewall's popup came up asking for permission to allow to connect. Possibly FileZilla is checking for available updates automatically.

  2. I unchecked the psping.exe, which is part of the Sysinternals Suite, from the "Enabled apps" section, and also deleted it from the "Disabled apps" section. Once I started using psping, the usual simplewall's popup asked to connect. I wasn't able to ping until I clicked the "Allow" button.

Notes:

  • My simplewall.ini content: https://pastebin.com/raw/7t9sunH6
  • I've enabled everything under the Blocklist tab.
  • There're some other rules that I've changed, but I don't think they will have any effect on the tests.
  • I'm using the portable version of simplewall.

@ltguillaume
Copy link
Contributor

That's very odd then. I'll do some more testing.

@mizzuri
Copy link

mizzuri commented May 15, 2020

I don't think setting those 2 policies totally disable the windows' internal firewall.
Because it seems the "Windows Defender Firewall" service is still running. Not sure if they're related though.

Edit:
And I've always thought that simplewall uses the Windows Filtering Platform, which exposes lower level APIs that both simplewall and Windows Defender Firewall depend on. So, I assume that disabling one shouldn't affect the other one at all.
I'm no expert, and I could be totally way off. But that's how I understand it from reading an article some time ago.

@w5l
Copy link

w5l commented May 19, 2020

Came here for the same thing, followed @mizzuri 's suggestion here and can confirm: Simplewall still blocks connections, and so far no warning popups (win10 18362). Now just to see how long it takes Windows to switch back on the annoying warnings.

I guess a "real solution" would be to allow windows to detect Simplewall as a custom firewall provider? Seeing as they allow custom providers for antivirus/malware/etc I would guess they have a system for firewall too. Though I do not know what effort and/or downsides are involved in that, or if it's feasible at all.

@ltguillaume
Copy link
Contributor

ltguillaume commented May 19, 2020

I just tried again and there is some strange behavior around setting these policies:

  • So, first time, it caused all traffic to be allowed, even though simplewall had its filters applied. A filter refresh from simplewall's UI didn't work either.
  • This time, I got an error + red cross over the Defender tray icon (shield), and only after a reboot everything seemed to be working OK.

I'll keep tabs on whether the filters keep working, but so far this is indeed the best workaround for the notification issue.

@mizzuri
Copy link

mizzuri commented May 20, 2020

I just tried it on another computer, and it also went fine.

@mizzuri
Copy link

mizzuri commented May 25, 2020

An update or something might have triggered the built-in firewall to turn back on today.

My browser wasn't working in the morning, even though I have it allowed in the simplewall. Everything else seemed fine. So I checked the group policies again, and somehow the 2 Windows Defender Firewall settings were set to "Enable".

I'm not sure what might have caused it.

Something to be careful about. Weird things could happen if both simplewall and Windows Defender Firewall are on at the same time, I guess.

@ltguillaume
Copy link
Contributor

An update or something might have triggered the built-in firewall to turn back on today.

My browser wasn't working in the morning, even though I have it allowed in the simplewall. Everything else seemed fine. So I checked the group policies again, and somehow the 2 Windows Defender Firewall settings were set to "Enable".

I'm not sure what might have caused it.

Something to be careful about. Weird things could happen if both simplewall and Windows Defender Firewall are on at the same time, I guess.

Do you mean the policies turned back on and you saw a red cross warning over Defender's tray icon again, or did Defender Firewall actually get re-enabled? The last thing would be strange, since simplewall now checks again if Defender Firewall is enabled and then disables it when you ticked the checkbox to do so.

I just mean that the firewall doesn't need to be enabled if those policies are back to default.

@mizzuri
Copy link

mizzuri commented May 26, 2020

No red cross. But the policies got re-enabled, so did the Defender Firewall.

Maybe this was a fluke. I'll keep watch.

@newbie337
Copy link

I applied @mizzuri 's suggestion, it works, my Simplewall still blocks connections, no red cross, and no warning popups. (OS Version 1909)

@Jaitsu
Copy link

Jaitsu commented Aug 12, 2020

Just as a note for those of us that don't have access to gpedit/Group Policy, the Registry equivalents for those Group Policy settings are as follows:

HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\EnableFirewall (DWORD) = 0
HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\EnableFirewall (DWORD) = 0

Perhaps simplewall could provide an option to set these values to silence the notifications.

@FischerandomONLY
Copy link

No red cross. But the policies got re-enabled, so did the Defender Firewall.

Maybe this was a fluke. I'll keep watch.

Your method works perfectly mizzuri, thank you! this non-removable notification was starting to get bloody annoying.

@Johandrex
Copy link

I'm going insane, still getting the firewalls notification despite attempting to use the tips by everyone in this thread on my two computers, both running Windows OS build 19041.

I have attempted to disable the policies "Windows Defender Firewall: Protect all network connections" in (Local Group Policy Editor > Local Computer Policy > Computer Configuration > Administrative Templates > All Settings) as @mizzuri recommended.

I've also disabled the following registries down below as recommended by @Jaitsu

Computer\HKEY_USERS\{XXXXXXXXXXX}\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\{XXXXXXXXXXX}Machine\SOFTWARE\Policies\Microsoft\WindowsFirewall\StandardProfile\EnableFirewall = 0
Computer\HKEY_USERS\{XXXXXXXXXXX}\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy Objects\{XXXXXXXXXXX}Machine\SOFTWARE\Policies\Microsoft\WindowsFirewall\DomainProfile\EnableFirewall = 0

But I'm still getting the notification every single day, does the tips above still work for anyone else? Or is there any other methods for disabling the Windows defender notifications?

@mizzuri
Copy link

mizzuri commented Nov 20, 2021

@Johandrex, the tip above still works for me. I'm on Windows Version 20H2 (19042).

@middleflesh
Copy link

Disabling Windows Security service stops the notification from appearing. Im on Windows 11, but it worked on Windows 10 as well. You need to disable it from registry. Take ownership of the key to change the value of 'start' to '4'.
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SecurityHealthService

Do it at your own risk. This will break the Windows Security app!

@ZacharyElkins
Copy link

Yeah, none of the solutions above stop the notification for me.

Perhaps I'll be completely removing Windows Defender and replacing it with something else soon. I can't even use the notification system because I don't want a microaggression everytime I boot my PC (pun intended).

@FischerandomONLY
Copy link

Yeah, none of the solutions above stop the notification for me.

Perhaps I'll be completely removing Windows Defender and replacing it with something else soon. I can't even use the notification system because I don't want a microaggression everytime I boot my PC (pun intended).

Hey man, i'm on W11 22H2 pro version and still using the gpedit fix mizzuri posted and for me it's working. you tried that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests