0

I have to set two different network categories public and private to two different lan adapters. There are multiple firewall rules that open ports that only shall apply to the LAN.

Whenever I execute the command:

Set-NetConnectionProfile -Name "NetworkName" -NetworkCategory Private

This automatically sets the category for BOTH adapters. When I choose public, public is applies to booth adapters, when I use private, private is applied to booth adapters. I tried this with network alias and network interface, because network name is identical for booth and shows "unidentified network".

What can lead to this behavior? I try to set the connection policy while the networks are currently inactive, but this should not explain this behavior? Is it possible to directly attach a network category to the hardware? I observed, that the interface index is keep changing during reboots and in the past the network category assignment did as well, leading to security issues.

4
  • I am quite sure what you see is normal. Simplify what you are trying to do.
    – anon
    Commented Apr 13 at 12:51
  • How can it be normal? I have two different NICs and two different NIC shall have different network categories. Why shouldn't this be possible? This seems to be part of the essential capability of a firewall.
    – raptorlane
    Commented Apr 13 at 14:03
  • In my usage of Windows, Public / Private applies to the computer (all)
    – anon
    Commented Apr 13 at 14:13
  • In my usage, not. Please don't transfer your use case to that of other people. The issue I am experiencing defies the principle idea of different categories/ network zones, if you can not assign them freely and reliably. I found multiple reports when people report on the same issue. I am wondering if someone solved this issue and how.
    – raptorlane
    Commented Apr 13 at 16:06

0

You must log in to answer this question.