windows2003中使用命令行添加IP筛选器规则

添加单个IP:

netsh ipsec static add filter filterlist=允许访问的端口 srcaddr=192.168.60.20 staddr=me dstport=80 protocol=TCP

添加子网:

netsh ipsec static add filter filterlist=允许访问的端口 srcaddr=192.168.60.0 srcmask=255.255.255.0 dstaddr=me dstport=80 protocol=TCP

其中,srcaddr是源地址,destaddr是目标地址,"me"表示主机自身的所有IP,destport是目标端口。filterlist是IP筛选器列表的名称

猜你喜欢

转载自www.cnblogs.com/flyingpigacc/p/10960685.html