分享至
name = 名稱dir = 規則 in/out 輸入輸出action = allow/deny 允許連線 / 拒絕protocol = tcp/udplocalport = 你要開的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
IT邦幫忙