wulongy

添加进站允许规则和出站规则命令 netsh advfirewall firewall

netsh advfirewall firewall
为本地端口 添加进站允许规则
netsh advfirewall firewall add rule name = SQLPort1433 dir = in protocol = tcp action = allow localport = 1433 remoteip = localsubnet profile =any

 

 

 

为本地端口 添加出站允许规则
netsh advfirewall firewall Add rule name="www80" dir=out protocol=tcp localport=80 action=allow

也可以写为UDP 或者多个PORT

netsh advfirewall firewall Add rule name="OPEN PORT " dir=out protocol=udp localport=5000-5010 action=allow

 

 

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-07
  • 2021-11-23
  • 2021-05-14
  • 2021-11-23
  • 2021-10-04
  • 2021-12-14
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2021-11-23
  • 2021-04-13
相关资源
相似解决方案