Programming/Tips

MS SQL 2008 R2 방화벽 해제

acidpop 2013. 4. 5. 11:31
반응형

 

 @echo ========= SQL Server Ports ===================
@echo Enabling SQLServer default instance port 1433
netsh advfirewall firewall add rule name="SQLServer" 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 Debugger/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 Analysis Services port 2382
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 Services port 2382
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 advfirewall firewall add rule name=”multicastbroadcastresponse” dir=in  action=enable

 

 

netsh firewall 명령어를 이용하면 netsh advfirewall firewall 을 사용하라고 나온다

 

그에 맞게 수정한 버전이다.

 

 

 

OpenSqlServerPort_win2003.bat

 

OpenSqlServerPort_win2008.bat

 

 

반응형