name = 名称
dir = 规则 in/out 输入输出
action = allow/deny 允许连线 / 拒绝
protocol = tcp/udp
localport = 你要开的port
netsh advfirewall firewall add rule name= "Open Port 80" dir=in action=allow protocol=TCP localport=80
参考 https://docs.microsoft.com/zh-tw/troubleshoot/windows-server/networking/netsh-advfirewall-firewall-control-firewall-behavior