- Download the IIS Lockdown Wizard. To download the wizard, visit the following Microsoft Web site:
- Extract the Lockdown Wizard files from the executable file.
- Find the folder that you specified when you extracted the files, and then double-click the Iislockd.chm file.
- Exchange and Outlook Web Access (OWA):309508 IIS Lockdown and URLscan configurations in an Exchange environment
- Microsoft Mobile Information Server:311595 How to install and configure Microsoft Security Tool Kit on a Microsoft Mobile Information Server
- Microsoft Small Business Server:311862 How to use The IIS Lockdown tool with Small Business Server
- Microsoft Project, Project Server, and Project Web Access:321357 Error messages when you view a Microsoft Project Web Access page that contains grids316398 How to configure the IIS Lockdown Tool and the URLScan security tool on a computer that is running Microsoft Project Server or Microsoft Project Central
- Microsoft SharePoint Portal Server:309675 IIS Lockdown Tool affects SharePoint Portal Server319633 'Script execution error: Error executing INVOKE' error message after you install IIS Lockdown Wizard
- Microsoft Visual Studio .NET:310588 PRB: Security Toolkit breaks ASP.NET debugging in Visual Studio .NET315904 BUG: "ExternalException: Cannot execute a program" error message when you call WebServices from .aspx page
- Microsoft FrontPage:317390 "HTTP/1.1 404 Object not found" error message occurs when a user of your Web page performs a search307976 Error message when you use FrontPage with URLScan
- Microsoft Proxy Server:311675 Cannot search Proxy Server 2.0 Online Help after the IIS Lockdown Wizard is installed
- 888936 You cannot install the SMS 2003 Advanced Client
- Double-click the executable file that you downloaded in the Prepare to run the IIS Lockdown Wizard section to start the wizard.
- On the Welcome page, read the explanatory text, and then click Next.
- On the License Agreement page, read the license agreement, click I Agree, and then click Next.
- On the Select Server Template page, select the template that most closely matches the role of this server, and then click to select View Template Settings. The pages that follow this have options already selected based on the role of the server that you selected earlier in the previous page, so you can use all of the default selections.
If the server has multiple roles (for example, a dynamic Web server that is also a proxy server), click to select Other (Server that does not match any of the listed roles), and make sure that you carefully consider all the options that are presented on the following pages, because the default selections may not be appropriate for your server. When you have selected the appropriate settings, click Next.
- On the Internet Services page, select the services that you want your server to provide. Most servers require the Web service. If you do not want your server to provide File Transfer Protocol (FTP) or Simple Mail Transfer Protocol (SMTP) services (that is, file transfer or e-mail services), you can click to clear these options. Note that you must leave SMTP selected if you are running Exchange or Small Business Server.
The services that you do not select on this page are set to Disabled and cannot start. If you are running the Lockdown Wizard on IIS 5.0, you can also click to select Remove unselected services, which completely removes the services that you did not select from your system. When you have selected the appropriate settings, click Next.
- On the Script Maps page, click to clear the check box next to any file type or file types that you want your server to provide. If you are not sure what to disable, you can search your content directories to find out if those file name extensions exist. Note that most servers require Active Server Pages (.asp), so you must click to clear that check box unless you are sure that your server does not serve ASP pages. Click Next.
- On the Additional Security page, select the virtual directories that you want to remove from this server. By default, these virtual directories are installed by default with IIS, so they are well-known targets for attackers and you might want to remove these virtual directories or rename them on production computers. Removing these virtual directories from IIS does not remove the corresponding physical directories on the disk, so you do not lose any data by selecting this option.
- On the Additional Security page, click to select Running system utilities if you want to deny rights on executable files in the Windows directory to the Internet guest account (by default, IUSR_<computername>). This option should be selected on most systems.
- On the Additional Security page, click to select Writing to content directories if you want to deny Write rights to the Internet guest account on the directories that contain your Web content. Make sure that you leave this option unselected if you are using FrontPage Server Extensions on this server or if this server functions as a proxy server.
- On the Additional Security page, click to select Disable Web Distributed Authoring and Versioning (WebDAV) if you are not using WebDAV to create and deploy Web content on this server. If this server runs Outlook Web Access (OWA) for Exchange 2000, make sure that you leave this option unselected.
NOTE: If you select this option, the Lockdown Wizard sets the rights on the DLL that implements WebDAV functionality (Httpext.dll) to deny execute permission. This may still permit certain WebDAV requests to execute. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:307934 Locking down WebDAV through ACL still allows PUT and DELETE requests
- Click Next.
- On the URLScan page, select the option to install URLScan if you want to use URLScan to filter out incoming requests based on a set of rules. If a client tries to make a request that is not valid based on the URLScan rules, IIS replies with a 404 File Not Found error and logs the request in the URLScan log file. By default, this file is located in %WINDIR%\System32\Inetsrv\Urlscan\Urlscan.log.
Note If you leave WebDAV enabled on the Additional Security page but you decide to install URLScan, note that URLScan blocks WebDAV requests by default. You must modify the Urlscan.ini file if you want to use WebDAV with URLScan.
- On the Ready to Apply Settings page, review the changes that will be made, and then click Next.
- The Lockdown Wizard backs up your metabase and makes the selected changes. When this process has completed, click View Report to see a report that describes the changes that the wizard has made. Click Next to continue.
Note You can see the installation report by opening %WINDIR%\System32\Inetsrv\Oblt-rep.log in Notepad.
- Click Finish to close the IIS Lockdown Wizard.
- Fully test all functionality of your server. This step is very important. If you discover that you have accidentally disabled required functionality of your server, immediately roll back the changes that the Lockdown Wizard made, and then rerun the wizard to select the correct options.For additional information, click the following article number to view the article in the Microsoft Knowledge Base:317052 How to undo changes made by the IIS Lockdown Wizard
To configure URLScan, use a text editor such as Notepad to edit the %WINDIR%\System32\Inetsrv\Urlscan\Urlscan.ini file. This file contains extensive comments that explain each configuration option. When you have finished editing the .ini file, save it and restart IIS.
For additional information about how to configure URLScan, click the following article number to view the article in the Microsoft Knowledge Base:
If you receive a 404 error message after you run the IIS Lockdown Wizard, follow these steps to troubleshoot the problem:
- Verify that the file you are requesting exists on the server. For more information, click the following article number to view the article in the Microsoft Knowledge Base:248033 How system administrators can troubleshoot an "HTTP 404 - File not found" error message on a server that is running IIS
- Examine the URLScan log file to see if URLScan is blocking the requests. This file is located at %WINDIR%\System32\Inetsrv\Urlscan\UrlscanMMDDYY.log (where MMDDYY is the date for the log). If you discover that URLScan is blocking the requests, see the Configure URLScan section to set up URLScan so it permits these requests.
- If you are requesting a non-HTML file, such as an ASP page or a server side include-enabled file, verify the application mapping for the file type in the Internet Services Manager:
- Right-click your Web site, and then click Properties.
- On the Home Directory tab, click Configuration.
- Click the Apps Mappings tab.
- Click the line that corresponds to the extension of the file that you are trying to access.
- If Executable Path is set to %WINDIR%\System32\Inetsrv\404.dll, click Edit, and then set Executable Path to the default executable path for that file extension. If you are not sure of the default, open the %WINDIR%\System32\Inetsrv\oblt-log.log file, which was created when you ran the Lockdown Wizard. Look for a line that starts with SMAP
followed by the file name extension. This line also contains the default executable path for that file type.
You may also find that FTP or SMTP do not work after you run the IIS Lockdown Wizard. This occurs if you either disable or remove these services. If you disabled the services, follow these steps to re-enable them:
- Open Control Panel.
- On Windows NT 4.0, open the Services applet. On Windows 2000 or Windows XP, open the Administrative Tools folder, and then open the Services applet.
- Double-click FTP Publishing or Simple Mail Transfer Protocol (SMTP).
- For Startup type, click to select Automatic.
- Click Start if you want the service to start right away.
- Open Control Panel.
- Open the Add/Remove Programs applet, and then click Add/Remove Windows Components in the left pane.
- Select Internet Information Services (IIS), and then click Details.
- Click to select File Transfer Protocol (FTP) Service or SMTP Service.
- Click OK, and then click Next. The selected service or services will be installed. You may be prompted to insert your Windows CD-ROM.
- Make sure that you reapply the latest Windows service pack and any hotfixes that you have installed.
For additional information about how to undo the changes that the IIS Lockdown Wizard made, click the following article number to view the article in the Microsoft Knowledge Base:
ID do Artigo: 325864 - Última Revisão: 30/07/2008 - Revisão: 1