To ensure that SQL based applications successfully connect to a remote instance of SQL Server on a machine that is running the Microsoft Windows Firewall, several exceptions must be configured.
Note: If you are utilizing a firewall other than Windows Firewall, please make the port and program exceptions referenced below in accordance with your firewall provider's settings.
To modify the Windows Firewall configuration, you can access Windows Firewall with Advanced Security through Control Panel > Windows Firewall > Advanced Settings or through Control Panel > Administrative Tools > Windows Firewall with Advanced Security. For the required settings using each option, click the appropriate link below.
Note: When creating the application exceptions on a 64-bit Windows Operating System, the application path may use the Program Files (x86) directory instead of Program Files. This would occur if the SQL instance is 32-bit instead of 64-bit.
- Configure the following exceptions in Windows Firewallto allow access to SQL Server.
- A port exception for TCP Port 1433
- A port exception for UDP Port 1434
- A program exception for exe
- A program exception for exe
- Open Control Paneland then open Windows Firewall. Click Advanced settingson the left side of the Windows Firewall window to open Windows Firewall with Advanced Security.
- Click Inbound Ruleson the left side of the window and then New Ruleon the right side.
- In the New Inbound Rule Wizard dialog, use the following information to create a port exception.
- Select Port
- Select TCPand specify port 1433
- Allow the connection
- Choose all three profiles (Domain, Private & Public)
- Name the rule "SQL Server TCP 1433"
- Click New Ruleagain and use the following information to create another port exception.
- Select Port
- Select UDPand specify port 1434
- Allow the connection
- Choose all three profiles (Domain, Private & Public)
- Name the rule "SQL Server UDP 1434
- Click New Ruleagain and use the following information to create a program exception.
- Select Program
- Click Browseto select 'sqlservr.exe' at this location: [ C:\Program Files\Microsoft SQL Server\MSSQL10_50.<INSTANCE_NAME>\MSSQL\Binn\sqlservr.exe] where <INSTANCE_NAME> is the name of your SQL instance. If you're working on a 64-bit computer, the sqlservr.exe will be in C:\Program Files (x86).
- Allow the connection
- Choose all three profiles (Domain, Private & Public)
- Name the rule sqlservr.exe
- Click New Ruleagain and use the following information to create another program exception.
- Select Program
- Click Browseto select sqlbrowser.exe at this location: [ C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe]. If you're working on a 64-bit computer, the sqlbrowser.exe will be in C:\Program Files (x86).
- Allow the connection
- Choose all three profiles (Domain, Private & Public)
- Name the rule sqlbrowser.exe
Kommentarer
0 kommentarer
Artikeln är stängd för kommentarer.