使用 Windows 10 防火墙阻止 IP

时间:2021-01-20 22:30:00

标签: windows-firewall

我正在尝试阻止来自 IP 地址的访问。我运行了以下提升的 PowerShell 脚本:

PS C:\> New-NetFirewallRule -RemoteAddress 192.35.168.128 -DisplayName "Block Bad IP" -Direction inbound -Profile Any -Action Block
Name                  : {b42f2110-9241-4068-93f1-5d5040630c17}
DisplayName           : Block Bad IP
Description           :
DisplayGroup          :
Group                 :
Enabled               : True
Profile               : Any
Platform              : {}
Direction             : Inbound
Action                : Block
EdgeTraversalPolicy   : Block
LooseSourceMapping    : False
LocalOnlyMapping      : False
Owner                 :
PrimaryStatus         : OK
Status                : The rule was parsed successfully from the store. (65536)
EnforcementStatus     : NotApplicable
PolicyStoreSource     : PersistentStore
PolicyStoreSourceType : Local

PS C:\>

当我使用 wf.msc 查看规则时,我没有看到绿色的复选标记。

enter image description here

规则不起作用。 我错过了什么?

查尔斯

0 个答案:

没有答案
相关问题