Skip to main content
The 2024 Developer Survey results are live! See the results
Post Closed as "Needs details or clarity" by Ramhound, DavidPostill
deleted 22 characters in body
Source Link
Ramhound
  • 43.1k
  • 35
  • 107
  • 137

Quick question for setting up Windows Defender Firewall rules:

  • Is there a boolean NOT operator that can be used with IP addresses?

What I would like to do is create an outbound firewall rule to block DNS lookups from everything except a specific IP address as a source IP address. (The source IP address that would be spared from this not operator is tied to an interface and is thus predictable; all other IP addresses could change based on connected wifi network and thus listing all possible IP ranges isn't particularly feasible).

Something I've also tried is just blocking UDP/53 outbound for the entire wifi network card type in Windows Firewall, which does work, so this question is more for my own general knowledge about the granularity that I can obtain with Windows Firewalls.

Thanks in advance!

Quick question for setting up Windows Defender Firewall rules:

  • Is there a boolean NOT operator that can be used with IP addresses?

What I would like to do is create an outbound firewall rule to block DNS lookups from everything except a specific IP address as a source IP address. (The source IP address that would be spared from this not operator is tied to an interface and is thus predictable; all other IP addresses could change based on connected wifi network and thus listing all possible IP ranges isn't particularly feasible).

Something I've also tried is just blocking UDP/53 outbound for the entire wifi network card type in Windows Firewall, which does work, so this question is more for my own general knowledge about the granularity that I can obtain with Windows Firewalls.

Thanks in advance!

Quick question for setting up Windows Defender Firewall rules:

  • Is there a boolean NOT operator that can be used with IP addresses?

What I would like to do is create an outbound firewall rule to block DNS lookups from everything except a specific IP address as a source IP address. (The source IP address that would be spared from this not operator is tied to an interface and is thus predictable; all other IP addresses could change based on connected wifi network and thus listing all possible IP ranges isn't particularly feasible).

Something I've also tried is just blocking UDP/53 outbound for the entire wifi network card type in Windows Firewall, which does work, so this question is more for my own general knowledge about the granularity that I can obtain with Windows Firewalls.

Source Link

Is there a boolean "NOT" operator in Windows Firewall Rules?

Quick question for setting up Windows Defender Firewall rules:

  • Is there a boolean NOT operator that can be used with IP addresses?

What I would like to do is create an outbound firewall rule to block DNS lookups from everything except a specific IP address as a source IP address. (The source IP address that would be spared from this not operator is tied to an interface and is thus predictable; all other IP addresses could change based on connected wifi network and thus listing all possible IP ranges isn't particularly feasible).

Something I've also tried is just blocking UDP/53 outbound for the entire wifi network card type in Windows Firewall, which does work, so this question is more for my own general knowledge about the granularity that I can obtain with Windows Firewalls.

Thanks in advance!