首页 > 解决方案 > 为给定的 IP 和 PORT 找到正确的 Internet 协议

问题描述

我正在为 Windows 10 中的特定 IP 和端口添加防火墙规则。但我收到错误: 协议无效。

我需要添加的地址:

13.79.172.43/8883,443
3.250.210.0/23
3.250.243.64/26
3.251.56.0/24
3.251.62.128/25
34.245.205.0/27
18.130.91.148/30

我正在使用的示例:

New-NetFirewallRule -DisplayName "Block-Wireless-In-01" -Name "Block-Wireless-In-01" -Direction Inbound -InterfaceType Wireless -Action Block -RemoteAddress 13.79.172.43 -LocalPort 8883,443 - Protocol TCP

我在 Windows 防火墙设置中用于定义协议的选项是:

HOPOPT
ICMPv4
IGMP
TCP
UDP
IPv6
IPv6-Route
IPv6-Frag
GRE
ICMPv6
IPv6-NoNxt
IPv6-Opts
VRRP
PGM
L2TP

如何为每个地址找到正确的协议以及在防火墙设置中选择什么?

标签: powershellwindows-10firewallnetwork-protocols

解决方案


推荐阅读