Configure a Firewall for Report Server AccessConfigure a Firewall for Report Server Access

Reporting ServicesReporting Services 報表伺服器應用程式和發行的報表是透過指定 IP 位址、通訊埠和虛擬目錄的 URL 來加以存取。Report server applications and published reports are accessed through URLs that specify an IP address, port, and virtual directory. 如果開啟了 Windows 防火牆,則設定報表伺服器使用的通訊埠很可能已關閉。If Windows Firewall is turned on, the port that the report server is configured to use is most likely closed. 當要求報表之後出現空白網頁,或是當您從遠端用戶端電腦嘗試開啟報表管理員時出現空白網頁,就表示某個通訊埠編號可能已關閉。Indications that a port might be closed are the appearance of a blank Web page after requesting a report, or a blank page when you attempt to open Report Manager from a remote client computer.

若要開啟通訊埠,您必須在報表伺服器電腦上使用 Windows 防火牆公用程式。To open a port, you must use the Windows Firewall utility on the report server computer. Reporting Services 將不會為您開啟通訊埠,您必須手動執行這個步驟。Reporting Services will not open ports for you; you must perform this step manually.

根據預設,報表伺服器會接聽通訊埠 80 上的 HTTP 要求。By default, the report server listens for HTTP requests on port 80. 因此,下列指示包含了指定該通訊埠的步驟。As such, the following instructions include steps that specify that port. 如果您設定報表伺服器 URL 使用不同的通訊埠,當您遵循底下的指示進行時,就必須指定該通訊埠編號。If you configured the report server URLs to use a different port, you must specify that port number when following the instructions below.

如果您要存取外部電腦上的 SQL ServerSQL Server 關聯式資料庫,或者報表伺服器資料庫位於外部 SQL ServerSQL Server 執行個體上,您就必須開啟外部電腦上的通訊埠 1433 和 1434。If you are accessing SQL ServerSQL Server relational databases on external computers, or if the report server database is on an external SQL ServerSQL Server instance, you must open port 1433 and 1434 on the external computer. 如需詳細資訊,請參閱《 線上叢書》的 設定用於 Database Engine 存取的 Windows 防火牆 SQL ServerSQL ServerFor more information, see Configure a Windows Firewall for Database Engine Access in SQL ServerSQL Server Books Online. 如需預設 Windows 防火牆設定的詳細資訊,以及影響 Database EngineDatabase EngineAnalysis ServicesAnalysis ServicesReporting ServicesReporting ServicesIntegration ServicesIntegration Services之 TCP 通訊埠的描述,請參閱《 線上叢書》中的 設定 Windows 防火牆以允許 SQL Server 存取 SQL ServerSQL ServerFor more information about the default Windows firewall settings, and a description of the TCP ports that affect the Database EngineDatabase Engine, Analysis ServicesAnalysis Services, Reporting ServicesReporting Services, and Integration ServicesIntegration Services, see Configure the Windows Firewall to Allow SQL Server Access in SQL ServerSQL Server Books Online.


這些指示假設您已經為報表伺服器 Web 服務和報表管理員設定服務帳戶、建立報表伺服器資料庫及設定 URL。These instructions assume that you already configured the service account, created the report server database, and configured URLs for the Report Server Web service and Report Manager. 如需詳細資訊,請參閱 管理 Reporting Services 原生模式報表伺服器For more information, see Manage a Reporting Services Native Mode Report Server.

您也應該已經確認,報表伺服器可透過本機報表伺服器執行個體的本機網頁瀏覽器連接來加以存取。You should also have verified that the report server is accessible over a local Web browser connection to the local report server instance. 此步驟會確認您有使用中的安裝。This step establishes that you have a working installation. 在您開始開啟通訊埠之前,應該先確認安裝已正確設定。You should verify that the installation is configured correctly before you begin opening ports. 若要在 Windows Server 上完成這個步驟,您也必須已經將報表伺服器網站加入至 [信任的網站]。To complete this step on Windows Server, you must have also added the report server site to Trusted Sites. 如需詳細資訊,請參閱 設定原生模式報表伺服器進行本機管理 (SSRS)For more information, see Configure a Native Mode Report Server for Local Administration (SSRS).

在 Windows 防火牆中開啟通訊埠Opening Ports in Windows Firewall

不同版本的 Windows 防火牆有不同的指示。There are separate instructions for different versions of Windows Firewall.

在 Windows 7、Windows Server 2008 R2、Windows Server 2012 和 2012 R2 上開啟通訊埠 80To open port 80 on Windows 7, Windows Server 2008 R2, Windows Server 2012 and 2012 R2

  1. [開始] 功能表中,按一下 [控制台] 、按一下 [系統及安全性] ,然後按一下 [Windows 防火牆]From the Start menu, click Control Panel, click System and Security, and then click Windows Firewall. 如果 [控制台] 沒有設定為「類別目錄」檢視,您只需要選取 [Windows 防火牆]Control Panel is not configured for 'Category' view, you only need to select Windows Firewall.

  2. 按一下 [進階設定] 。Click Advanced Settings.

  3. 按一下 [輸入規則]Click Inbound Rules.

  4. 按一下 [動作] 視窗中的 [新增規則]Click New Rule in the Actions window .

  5. 按一下 [連接埠][規則類型]Click Rule Type of Port.

  6. 按 [下一步] 。Click Next.

  7. [通訊協定及連接埠] 頁面上,按一下 [TCP]On the Protocol and Ports page click TCP.

  8. 選取 [特定本機連接埠] ,然後輸入值: 80Select Specific Local Ports and type a value of 80.

  9. 按 [下一步] 。Click Next.

  10. [動作] 頁面上,按一下 [允許該連線]On the Action page click Allow the connection.

  11. 按 [下一步] 。Click Next.

  12. [設定檔] 頁面上,按一下適用於您環境的選項。On the Profile page click the appropriate options for your environment.

  13. 按 [下一步] 。Click Next.

  14. 在 [名稱] 頁面上,輸入名稱:ReportServer (TCP 在連接埠 80 上)On the Name page enter a name ofReportServer (TCP on port 80)

  15. 按一下 [完成] 。Click Finish.

  16. 重新啟動電腦。Restart the computer.

若要在 Windows Vista 或 Windows Server 2008 上開啟通訊埠 80To open port 80 on Windows Vista or Windows Server 2008

  1. 在 [開始] 功能表中,按一下 [控制台],按一下 [安全性],然後按一下 [ Windows 防火牆]。From the Start menu, click Control Panel, click Security, and then click Windows Firewall.

  2. 按一下 [允許程式通過 Windows 防火牆]。Click Allow a program through Windows Firewall.

  3. 按一下 [繼續]Click Continue.

  4. 在 [例外] 索引標籤上,按一下 [新增埠]。On the Exceptions tab, click Add Port.

  5. 在 [名稱] 中,輸入ReportServer (TCP on 埠80)In Name, type ReportServer (TCP on port 80).

  6. 在 [埠號碼] 中,輸入80In Port number, type 80.

  7. 確認已選取 [ TCP ]。Verify that TCP is selected.

  8. 按一下 [變更領域]。Click Change Scope.

  9. 按一下 [僅限我的網路(子網)],然後按一下 [確定]Click My network (subnet) only, and then click OK.

  10. 按一下 [確定] ,關閉對話方塊。Click OK to close the dialog box.

  11. 重新啟動電腦。Restart the computer.

後續步驟Next Steps

在您開啟此通訊埠之後,以及確認遠端使用者是否可以在您開啟的通訊埠上存取報表伺服器之前,您必須透過首頁和網站層級的角色指派,為使用者授與此報表伺服器的存取權。After you open the port and before you confirm whether remote users can access the report server on the port that you open, you must grant user access to the report server through role assignments on Home and at the site level. 如果使用者沒有足夠的權限,雖然您可以正確開啟通訊埠,不過報表伺服器連接仍然會失敗。You can open a port correctly and still have report server connections fail if users do not have sufficient permissions. 如需詳細資訊,請參閱《 線上叢書》中的將報表伺服器的存取權授與使用者 (報表管理員)SQL ServerSQL ServerFor more information, see Grant User Access to a Report Server (Report Manager) in SQL ServerSQL Server Books Online.

您也可以在另一部電腦上啟動報表管理員,以確認此通訊埠已正確開啟。You can also verify that the port is opened correctly by starting Report Manager on a different computer. 如需詳細資訊,請參閱《 線上叢書》中的報表管理員 (SSRS 原生模式)SQL ServerSQL ServerFor more information, see Report Manager (SSRS Native Mode) in SQL ServerSQL Server Books Online.

另請參閱See Also

設定報表伺服器服務帳戶 (SSRS 組態管理員) Configure the Report Server Service Account (SSRS Configuration Manager)
設定報表伺服器 URL (SSRS 組態管理員) Configure Report Server URLs (SSRS Configuration Manager)
建立報表伺服器資料庫 (SSRS 組態管理員) Create a Report Server Database (SSRS Configuration Manager)
設定報表伺服器服務帳戶 (SSRS 組態管理員) Configure the Report Server Service Account (SSRS Configuration Manager)
管理 Reporting Services 原生模式報表伺服器Manage a Reporting Services Native Mode Report Server