Command line :
netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow localport=1433 protocol=TCP
netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow localport=1434 protocol=UDP
netsh advfirewall firewall add rule name="SQL Admin Connection" dir=in action=allow localport=1434 protocol=TCP
netsh advfirewall firewall add rule name="SQL Service Broker" dir=in action=allow localport=4022 protocol=TCP
netsh advfirewall firewall add rule name="SQL Mirror Port" dir=in action=allow localport=5022 protocol=TCP
0 Comments