Windows 10: Explicit block rule NOT taking precedence over allow rule

Discus and support Explicit block rule NOT taking precedence over allow rule in AntiVirus, Firewalls and System Security to solve the problem; According to this MS article, block rules are supposed to take precedence over any conflicting allow rules in the Defender firewall. However, I do not... Discussion in 'AntiVirus, Firewalls and System Security' started by jeffshead, Jul 8, 2021.

  1. jeffshead Win User

    Explicit block rule NOT taking precedence over allow rule


    According to this MS article, block rules are supposed to take precedence over any conflicting allow rules in the Defender firewall. However, I do not see this happening. I have an allow rule which basically allows any traffic to an FTP server running on this Windows box. It does work because I cannot access the FTP server when I disable this allow rule. I have a script that creates a block rule for each IP address that tries to login using the admin account on the FTP server. I have tried every manner of granular settings on both the allow and block rules but I cannot make the block rule take precedence. Another problem is that I cannot get the firewall to write to the log so I can't even view it to see what's going on. I followed these instructions but it only creates an empty log file. Anyone know what I'm doing wrong? Please let me know what details you need from me.

    :)
     
    jeffshead, Jul 8, 2021
    #1
  2. TwuTu Win User

    Windows Firewall: Doesn't show blocking rules

    Hello!

    Today I've blocked all connections of a program by creating a outbound rule in Windows Firewall. However, I now wish to remove it. The problem: I can't find that newly created rule anywhere in the list. The rule does take an effect, since deactivating the
    Firewall lets the program run properly. I can only see rules in the list that "allow" stuff, but not those who block things.

    What I have tried so far:

    - All filters set to "Show all" within the Firewall

    - Created the same rule again, doesn't show up

    - Created a rule that allows the program, shows up

    Any solutions?
     
    TwuTu, Jul 8, 2021
    #2
  3. MadagaC Win User
    Windows 2012 Server - Creating an exception for a block rule in the firewall

    Hy, ya'll!

    I have to deploy a rule to block all outbound traffic towards port TCP 80 regardless of the destination IP, so I set up an outbound "block" rule in the Windows Firewall specifically against that port. it was straightforward and works like a charm. However,
    I can't seem to find a way to add one single IP as an exception to this rule.

    I tried creating a new rule allowing all traffic to the IP I'm attempting to whitelist but, from what I can gather, the blocking rules in the Windows firewall take precedence over "allow" rules so that explains why it didn't work.

    How can I work around this? All I need is to block outgoing traffic to TCP 80 on all but one IP.

    Thanks!
     
    MadagaC, Jul 8, 2021
    #3
  4. Explicit block rule NOT taking precedence over allow rule

    Inbound Firewall Rule that Blocks

    Code:
    Please help me understand how the 2 Inbound Rules created by MMC actually operate.
    
    Action, Enabled, Service, Program,                     Protocol
    
    Block,  Yes,     Any,     C:\windows\system32\mmc.exe, TCP
    
    Block,  Yes,     Any,     C:\windows\system32\mmc.exe, UDP
    If these 2 rules were Outbound Rules, I'd say that client process 'mmc.exe' is blocked.
    
    But applying equivalent logic (that 'mmc.exe' is blocked) to Inbound Rules doesn't make sense -- why would 'mmc.exe' (which created these Rules) block itself?
    
    What (somewhat) makes sense is that 'mmc.exe' is a requester, and that these rules block all TCP & UDP datagrams & all processes.
    
    If so, then there's quite a difference between Outbound & Inbound Rules.
    
    In Outbound Rules, 'Program' specifies the target (the process that's blocked), whereas in Inbound Rules, 'Program' specifies the requester (the process that provokes blocking).
    
    This is crucial reasoning because, if correct, then, as a consequence, every process is the target of Inbound Rules that Block.
    
    What about Inbound Rules that Allow? I've always assumed that an Inbound+Allow means the specified 'Program' installs a listener (i.e., has handler(s) for the specified socket(s)).
    
    I think that's pretty straightforward.
    
    I've read what Microsoft provides and it's grossly inadequate -- what a surprise, eh?
    
    Microsoft documentation presents only trivial explanation of how to complete the fields (example: "Type the path to the program in the text box"), or the tutorial's scope is limited (example: "On the Action page, select Allow the connection, and then click
     Next" -- no mention of "Block the connection").
    
    Other web hits are just plain wrong (examples: "Program – Block or allow a program"; "Program - creates rule that controls connections for an app or program"; "if you are downloading a file through BitTorrent, the download of that file is filtered through an
     inbound rule" -- Rules control connections, not streams) or show ridiculous cases (example: "I want to block all outgoing connections on port 80").
    Does anyone know of an architectural reference or guidebook that explains how Firewall Rules are implemented in a running system?
    Warm Regards -- Mark.
    
    
     
    MarkFilipak.Windows, Jul 8, 2021
    #4
Thema:

Explicit block rule NOT taking precedence over allow rule

Loading...
  1. Explicit block rule NOT taking precedence over allow rule - Similar Threads - Explicit block rule

  2. Firewall Rules to Allow Microsoft Store

    in Windows 10 Gaming
    Firewall Rules to Allow Microsoft Store: When searching for this topic the frequent answer points to this page: <https://learn.microsoft.com/en-us/microsoft-store/prerequisites-microsoft-store-for-business>.That page is no longer available. Is there a suitable replacement documentation that describes which endpoints...
  3. Firewall Rules to Allow Microsoft Store

    in Windows 10 Software and Apps
    Firewall Rules to Allow Microsoft Store: When searching for this topic the frequent answer points to this page: <https://learn.microsoft.com/en-us/microsoft-store/prerequisites-microsoft-store-for-business>.That page is no longer available. Is there a suitable replacement documentation that describes which endpoints...
  4. Firewall Rules to Allow Microsoft Store

    in Windows 10 Gaming
    Firewall Rules to Allow Microsoft Store: Hi,We have our firewall set to block all traffic, what addresses can we add to the firewall to allow access to Microsoft Store. https://answers.microsoft.com/en-us/windows/forum/all/firewall-rules-to-allow-microsoft-store/b65afe65-536e-4355-9794-16ccdedc1be3
  5. Firewall Rules to Allow Microsoft Store

    in Windows 10 Software and Apps
    Firewall Rules to Allow Microsoft Store: Hi,We have our firewall set to block all traffic, what addresses can we add to the firewall to allow access to Microsoft Store. https://answers.microsoft.com/en-us/windows/forum/all/firewall-rules-to-allow-microsoft-store/b65afe65-536e-4355-9794-16ccdedc1be3
  6. Outbound rules still show as allowed.

    in AntiVirus, Firewalls and System Security
    Outbound rules still show as allowed.: Why do all of the default (pre-defined) MS Firewall outbound rules still show as allowed when I have set outbound connections to block for the Domain, Private and Public profiles? Shouldn't setting outbound connections to block block everything in the outbound list? 162311
  7. DNS Client allowed by firewall rule, but still get blocked

    in AntiVirus, Firewalls and System Security
    DNS Client allowed by firewall rule, but still get blocked: Hi, First; I am using Binisoft/Malwarebytes Windows Firewall Control as frontend for Windows Firewall. My problem is that I allowed DNS Client to local gateway with UDP on port 53, but still for some reason it is being blocked. When opening the log window in Windows...
  8. Inbound Firewall Rule that Blocks

    in Windows 10 Customization
    Inbound Firewall Rule that Blocks: Please help me understand how the 2 Inbound Rules created by MMC actually operate. Action, Enabled, Service, Program, Protocol Block, Yes, Any, C:\windows\system32\mmc.exe, TCP Block, Yes, Any, C:\windows\system32\mmc.exe, UDP If these...
  9. Smartscreen blocked by firewall - how to add rule to allow?

    in AntiVirus, Firewalls and System Security
    Smartscreen blocked by firewall - how to add rule to allow?: Hello I have my firewall configured to block outbound connections that don't meet a rule. Although there are the default rules for Smartscreen still enabled, smartscreen still gives it's error message "Windows smartscreen can't be reached right now". If I enable all outbound...
  10. Firewall rule to allow /24

    in Windows 10 Network and Sharing
    Firewall rule to allow /24: Is it possible to use this notation in a firewall rule? I am having issues with homegroup telling me the computer joined to the home group is currently unavailable even though they are set not to hibernate/sleep. If I disable the firewall(s) then try I can connect to from one...