Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2014-07-25
5
594 Views
Last Modified: 2014-07-25
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
Comment
Question by:lianne143
  • 3
5 Comments
 
LVL 11

Accepted Solution

by:
NetoMeter Screencasts earned 400 total points
ID: 40218791
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
 

Author Comment

by:lianne143
ID: 40218815
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
 

Author Comment

by:lianne143
ID: 40218819
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
 
LVL 21

Assisted Solution

by:Tapan Pattanaik
Tapan Pattanaik earned 100 total points
ID: 40218821
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
 

Author Comment

by:lianne143
ID: 40219130
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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question