Netsh

From Federal Burro of Information
Jump to navigationJump to search

Example firewall rule add

netsh advfirewall firewall add rule name="LabTech Inbound TCP 70,80" dir=in profile=any localport=70,80 protocol=TCP action=allow
netsh advfirewall firewall add rule name="LabTech Inbound UDP 70,80" dir=in profile=any localport=70,80 protocol=UDP action=allow
netsh advfirewall firewall add rule name="LabTech Outbound TCP 70,80" dir=out profile=any localport=70,80 protocol=TCP action=allow
netsh advfirewall firewall add rule name="LabTech Outbound UDP 70,80" dir=out profile=any localport=70,80 protocol=UDP action=allow