There's a very similar question on Using Windows Firewall to block a specific IP on Windows 10 but I'm unable to block just a specific IP address.
I'm curious if there's ever a difference between the IP address returned via a ping
and the one that I need to enter when setting the scope of the windows firewall rules.
Here's the rule setup:
Type
: Outbound Rules
Action
: Block the connection
Programs
: All
Protocols
: Any
Advanced > Profiles
: Domain, Private & Public
Scope > Local
: Any IP Address
Scope > Remote
: Any IP Address
The above rule blocks pretty much all outbound traffic to any IP address
And when I run a ping against the machine I want to block, I get the correct results:
However, I don't want to block all IP addresses, I only want to block that specific one. So if I update the rule and just change the scope from Any to These IP addresses, then the traffic is somehow allowed through:
For any diagnostic reasons, here's the ipconfig
from server I want to block:
This thread on Why can I not managing to block an IP address in windows 7 firewall? seems to suggest changing the value for "Local IP address" to just block "Any IP", but that seems over scoped.
How can I figure out what specific local ip addresses to block? Or alternatively, why does blocking all local IP address allow remote addresses to be blocked?