Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 652
  • Last Modified:

How to add SQLBrowser & SQLServer Services to the list of exceptions on the window 2012 Firewall.

Hi

I have installed SQL 2012 on windows 2012 Server  and we will be migrating the database from old SQL to new  SQL server. The upgrade team has asked me to add SQLBrowser & SQLServer Services to the list of exceptions on the window 2012 Firewall. Please post me some tutorials as how to do this


Any help much appreciated.
Thanks
0
lianne143
Asked:
lianne143
  • 3
2 Solutions
 
NetoMeter ScreencastsCommented:
The easiest way to create the required firewall rules and open the ports that you need is to run NETSH ADVFIREWALL FIREWALL in command prompt - make sure that CMD is started with elevated privileges. After you configure the rules, you can double check them in the graphical interface.

Bellow you will find the list of SQL ports and the commands that open them:

netsh advfirewall firewall add rule name="Open Port 80" dir=in action=allow protocol=TCP localport=80

@echo =========  SQL Server Ports  ===================
@echo Enabling SQLServer default instance port 1433
netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow protocol=TCP localport=1433
@echo Enabling Dedicated Admin Connection port 1434
netsh advfirewall firewall add rule name="SQL Admin Connection" dir=in action=allow protocol=TCP localport=1434
@echo Enabling Conventional SQL Server Service Broker port 4022
netsh advfirewall firewall add rule name="SQL Service Broker" dir=in action=allow protocol=TCP localport=4022
@echo Enabling Transact SQL/RPC port 135
netsh advfirewall firewall add rule name="SQL Debugger/RPC" dir=in action=allow protocol=TCP localport=135
@echo =========  Analysis Services Ports  ==============
@echo Enabling SSAS Default Instance port 2383
netsh advfirewall firewall add rule name="Analysis Services" dir=in action=allow protocol=TCP localport=2383
@echo Enabling SQL Server Browser Service port 2382
netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow protocol=TCP localport=2382

@echo =========  Misc Applications  ==============
@echo Enabling HTTP port 80
netsh advfirewall firewall add rule name="HTTP" dir=in action=allow protocol=TCP localport=80
@echo Enabling SSL port 443
netsh advfirewall firewall add rule name="SSL" dir=in action=allow protocol=TCP localport=443
@echo Enabling port for SQL Server Browser Service's 'Browse' Button
netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow protocol=UDP localport=1434
@echo Allowing multicast broadcast response on UDP (Browser Service Enumerations OK)
netsh firewall set multicastbroadcastresponse ENABLE

Open in new window

0
 
lianne143Author Commented:
Thanks for your post I feel bit confused there are many commands.

Please can you post me the syntax only  
for  SQLBrowser & SQLServer Services
0
 
lianne143Author Commented:
I hope these are the two commands, if so do I need to just enter the whole syntax on the command prompt and enter individually.

@echo Enabling SQL Server Browser Service port 2382
netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow protocol=TCP localport=2382


@echo Enabling SQLServer default instance port 1433
netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow protocol=TCP localport=1433
0
 
Tapan PattanaikSenior EngineerCommented:
Hi lianne143,

This tutorial will help you to configure windows firewall for SQL Server. You will get lot of information like

Configure a Windows Firewall for Database Engine Access, Analysis Services Access, Report Server Access, Ports Used by the Database Engine, Analysis Services, Reporting Services, Integration Services

Configure the Windows Firewall to Allow SQL Server Access:

http://msdn.microsoft.com/en-us/library/cc646023.aspx#BKMK_programs
0
 
lianne143Author Commented:
I hope these are the two commands, if so do I need to just enter the whole syntax on the command prompt and enter one after another.

 @echo Enabling SQL Server Browser Service port 2382
 netsh advfirewall firewall add rule name="SQL Browser" dir=in action=allow protocol=TCP localport=2382


 @echo Enabling SQLServer default instance port 1433
 netsh advfirewall firewall add rule name="SQL Server" dir=in action=allow protocol=TCP localport=1433

Please suggest
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now