Open/close ports in windows firewall from the Command Line

Last Updated on

@echo off
netsh advfirewall firewall add rule name=”Veritas Netbackup” protocol=TCP dir=in localport=1556,13724 action=allow
netsh advfirewall firewall add rule name=”Veritas Netbackup” protocol=TCP dir=out localport=1556,13724 action=allow
pause

Leave a Reply

Your email address will not be published. Required fields are marked *