Qs on Defender Rules Cleanup w Particular Ref to HNS Container Entries


  1. Posts : 48
    Windows 10 Professional (x64) (build 16299)
       #1

    Qs on Defender Rules Cleanup w Particular Ref to HNS Container Entries


    I am looking at the configuration and settings of Defender Firewall for the dual reasons of ...

    Security - in using this workstation as a multi-media server - Plex Ubooquity and NAS - for both the home private network and with enabled remote access - I am conscious of opening up ports and access I really do not fully understand.

    Performance - I am trying to squeeze every drop from this old Dell 7010 i5 (system 2 in my computers with Windows 10 Pro 64) and optimal configuration of the Firewall has come up as a worthwhile task in several 'how to squeeze every drop ..' guides I have seen.

    So I am trying to understand the rules, and remove those that are unnecessary/redundant.

    I do not want to simple reset as all the media servers are currently working, plus this workstation happens to have a unique and very clunky Spanish Government digital certificate that was a real pain to get working.

    Whereas there are many apps and guides on cleaning other aspects of the system, I can't find anything on the firewall rules.

    Some housekeeping changes are obvious - rules with names of some software i may have installed years ago that has long been consigned to the bin.

    But many are way obscure, with no information on what they relate to or other info that may help narrow them down such as when they were added.

    My current rules are in excess of 600, and 150+ of these are HNS container entries.

    Searching on the HNS rules returned many threads of upset users ranting at MS for not attending to the issue, apparently caused in large part if not entirely, due to the V-Hyper terminal emulator thingy - something I had enabled, don't need and so have turned off.

    My question is in two parts:-

    1. Does anybody know of any guide, look-up, how-to or tool on cleaning the firewall of duplicate and redundant etc entries?

    2. Having turned off the v-Hyper thingy, can I delete all of the HNS entries - none of the upset posts I read today went as far as saying what could be done, or whether the v-hyper emulator was the sole reason these rules propagated in such numbers?

    2 screens attached of the hnc entries

    Qs on Defender Rules Cleanup w Particular Ref to HNS Container Entries-2022-01-27-1-.pngQs on Defender Rules Cleanup w Particular Ref to HNS Container Entries-2022-01-27.png
      My Computers


  2. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #2

    Hello gibbsyns3 and welcome to tenforums ,

    I don't have the answer to your questions, but offer that if you don't already make image backups, doing so will help you recover if you otherwise delete something and can't easily fix it:

    Backup and Restore with Macrium Reflect

    My complements to you on your long, but very readable and nicely presented post
      My Computer


  3. Posts : 48
    Windows 10 Professional (x64) (build 16299)
    Thread Starter
       #3

    steve108 said:
    Hello gibbsyns3 and welcome to tenforums ,

    I don't have the answer to your questions, but offer that if you don't already make image backups, doing so will help you recover if you otherwise delete something and can't easily fix it:

    Backup and Restore with Macrium Reflect

    My complements to you on your long, but very readable and nicely presented post
    Thanks for the compliments! You make a good point on backup - I am very good at data and media file backup, but have never had cause to bother as much about configuration. If all else fails, at least with firewall rules they can be disabled to test effect and enabled again in case of calamity - but as approaches go, it feels a bit like shooting yourself as a way of testing if a gun has any bullets. There has to be a better way.
      My Computers


  4. Posts : 2,800
    Windows 7 Pro
       #4

    hi,

    I don't know about any Windows Firewall cleanup utility.

    There is honestly not much you can do, If it is a client machine, resetting all to default and giving back authorization is the easiest way to do.

    On the left pane, click the Restore defaults link.
    Click the Restore defaults button.
    Click Yes to confirm.

    If it is a server machine... I would check every rules one by one and start by disabling only the suspicious ones...

    Then with time slowly tighten things up...
      My Computers


  5. Posts : 21,421
    19044.1586 - 21H2 Pro x64
       #5

    gibbsyns3 said:
    Thanks for the compliments! You make a good point on backup - I am very good at data and media file backup, but have never had cause to bother as much about configuration. If all else fails, at least with firewall rules they can be disabled to test effect and enabled again in case of calamity - but as approaches go, it feels a bit like shooting yourself as a way of testing if a gun has any bullets. There has to be a better way.
    You may find this useful too: Backup and Restore Windows Defender Firewall Settings in Windows 10

    I've not tinkered with my firewall rules much for fear of breaking something. I wish it was easier to clearly understand the rules.
      My Computer


  6. Posts : 48
    Windows 10 Professional (x64) (build 16299)
    Thread Starter
       #6

    HNS Container Entries Outcome


    Though this post did not receive any responses that definitively solved the issue of what these HNS Container Entries are and why they proliferated to such an extent, I thought it would be useful to record my actions and the outcome - I initially created the post as found when searching that the question had been asked in various forums many times, but none had received an answer.

    If you come to this thread via a web search I can tell you that I disabled all the hundreds of HNS entries in my firewall, and after several weeks there has been no negative effect, no connections have been problematic or closed, everything is working fine and dandy without them.

    Obs this applies to my set up, so I can't offer any guarantee you will have the same experience, but if you follow the back up recommended by @steve108 in his reply, you should be able to safely try disabling these entries before taking the step of deleting them for good.
      My Computers


  7. Posts : 1,746
    Windows 10 Pro x64 22H2
       #7

    As you can see these HNS rules are all inbound for port 53.

    TCP rules are for ICS (Internet Connection Sharing) service, and UDP rules apply to all programs and services by design.

    HNS stands for Host Networking Service and these rules apply to Hyper-V virtual switch, for details see:
    https://docs.microsoft.com/en-us/vir...g/architecture

    If you don't use Hyper-V it's safe to delete all of these HNS rules, these rules will be automatically recreated when you set up Hyper-V next time.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:42.
Find Us




Windows 10 Forums