Microsoft Virtual Labs. Administering the IIS 7 File Transfer Protocol (FTP) Server



Similar documents
MCTS Guide to Microsoft Windows Server 2008 Applications Infrastructure Configuration (Exam # )

HP Device Manager 4.6

NSi Mobile Installation Guide. Version 6.2

IIS, FTP Server and Windows

Security Guidelines for MapInfo Discovery 1.1

RoomWizard Synchronization Software Manual Installation Instructions

Reference and Troubleshooting: FTP, IIS, and Firewall Information

FTP Server Configuration

Appendix E. Captioning Manager system requirements. Installing the Captioning Manager

FTP, IIS, and Firewall Reference and Troubleshooting

Password Reset Server Installation Guide Windows 8 / 8.1 Windows Server 2012 / R2

ECA IIS Instructions. January 2005

Quick Start Guide. Cerberus FTP is distributed in Canada through C&C Software. Visit us today at

Reconfiguring VMware vsphere Update Manager

AXIS 70U - Using Scan-to-File

WhatsUp Gold v16.3 Installation and Configuration Guide

Installing and Configuring vcenter Multi-Hypervisor Manager

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

LepideAuditor Suite for File Server. Installation and Configuration Guide

Installation Guide v3.0

CNW Re-Tooling Exercises

Secure IIS Web Server with SSL

Appendix B Lab Setup Guide

etoken Enterprise For: SSL SSL with etoken

Active Directory integration with CloudByte ElastiStor

SharePoint Server for Business Intelligence

Crystal Reports Installation Guide

1. Set Daylight Savings Time Create Migrator Account Assign Migrator Account to Administrator group... 4

QUANTIFY INSTALLATION GUIDE

Installing Policy Patrol on a separate machine

MTA Course: Windows Operating System Fundamentals Topic: Understand backup and recovery methods File name: 10753_WindowsOS_SA_6.

Team Foundation Server 2012 Installation Guide

Install the Production Treasury Root Certificate (Vista / Win 7)

Customer Tips. Xerox Network Scanning HTTP/HTTPS Configuration using Microsoft IIS. for the user. Purpose. Background

Quick Start Guide. User Manual. 1 March 2012

Enabling Kerberos SSO in IBM Cognos Express on Windows Server 2008

Set up SSL in Deployment Solution 7.5

Rev 7 06-OCT Site Manager Installation Guide

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

Installing GFI MailArchiver

Create, Link, or Edit a GPO with Active Directory Users and Computers

ThinManager and Active Directory

MadCap Software. Upgrading Guide. Pulse

Installing SQL Express. For CribMaster 9.2 and Later

How To Install And Configure Windows Server 2003 On A Student Computer

Configuration Task 3: (Optional) As part of configuration, you can deploy rules. For more information, see "Deploy Inbox Rules" below.

Step-by-Step Setup Guide Wireless File Transmitter FTP Mode

WEBCONNECT INSTALLATION GUIDE. Version 1.96

USER GUIDE WEB-BASED SYSTEM CONTROL APPLICATION. August 2014 Phone: Publication: , Rev. C

Windows Clients and GoPrint Print Queues

How To Enable A Websphere To Communicate With Ssl On An Ipad From Aaya One X Portal On A Pc Or Macbook Or Ipad (For Acedo) On A Network With A Password Protected (

eadvantage Certificate Enrollment Procedures

Team Foundation Server 2010, Visual Studio Ultimate 2010, Team Build 2010, & Lab Management Beta 2 Installation Guide

Windows Azure Pack Installation and Initial Configuration

Instructions for Uploading and Sending Transcripts to the CollegeforTN.org Transcript Exchange Chancery SMS IMPORTANT NOTES:

NovaBACKUP xsp Version 15.0 Upgrade Guide

Bitrix Site Manager ASP.NET. Installation Guide

Secret Server Installation Windows Server 2008 R2

WHITE PAPER Citrix Secure Gateway Startup Guide

Installing GFI MailArchiver

S/MIME on Good for Enterprise MS Online Certificate Status Protocol. Installation and Configuration Notes. Updated: October 08, 2014

Neoteris IVE Integration Guide

CA VPN Client. User Guide for Windows

Non-ThinManager Components

Managing Multi-Hypervisor Environments with vcenter Server

Internet Synchronization with Microsoft Jet 3.5

Monitoring SQL Server with Microsoft Operations Manager 2005

Course: WIN310. Student Lab Setup Guide. Summer Microsoft Windows Server 2003 Network Infrastructure (70-291)

Reconfiguring VMware vsphere Update Manager

Introduction and Overview

ILTA HAND 6B. Upgrading and Deploying. Windows Server In the Legal Environment

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

3 Setting up Databases on a Microsoft SQL 7.0 Server

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Using SSH Secure Shell Client for FTP

Installing Globodox Web Client on Windows Server 2012

Changing Your Cameleon Server IP

Management Utilities Configuration for UAC Environments

AD RMS Step-by-Step Guide

Tenrox. Single Sign-On (SSO) Setup Guide. January, Tenrox. All rights reserved.

Installing Windows Server Update Services (WSUS) on Windows Server 2012 R2 Essentials

SECURE MOBILE ACCESS MODULE USER GUIDE EFT 2013

Lepide Software. LepideAuditor for File Server [CONFIGURATION GUIDE] This guide informs How to configure settings for first time usage of the software

Chapter 2 Editor s Note:

Preparing to Install SQL Server 2005

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

Deploying Personal Virtual Desktops by Using RemoteApp and Desktop Connection Step-by-Step Guide

Tech Tips Helpful Tips for Pelco Products

SAS 9.3 Foundation for Microsoft Windows

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

SETUP SSL IN SHAREPOINT 2013 (USING SELF-SIGNED CERTIFICATE)

Pro-Watch Software Suite Installation Guide Honeywell Release 4.1

Print Audit 6 - SQL Server 2005 Express Edition

Setting Up SSL on IIS6 for MEGA Advisor

ProjectWise Mobile Access Server, Product Preview v1.1

Neoteris IVE Integration Guide

O Reilly Media, Inc. 3/2/2007

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

ILTA HANDS ON Securing Windows 7

CONNECT-TO-CHOP USER GUIDE

Transcription:

Microsoft Virtual Labs Administering the IIS 7 File Transfer Protocol (FTP) Server

Table of Contents Exercise 1 Installing the Microsoft FTP Publishing Service for the IIS 7... 1 Exercise 2 Introducing IIS 7 FTP Administration... 2 Exercise 3 Using FTP over Secure Sockets Layer (SSL)... 7 Exercise 4 Using Virtual Hosts... 13 Exercise 5 User Isolation and Virtual Directories... 17 Exercise 6 Non-Windows Authentication... 21

Administering the IIS 7 File Transfer Protocol (FTP) Server Objectives Microsoft has created a new FTP service that has been completely rewritten for Microsoft Windows Server 2008. This new FTP service incorporates many new features that enable Web authors to publish content better than before, and offers Web administrators more security and deployment options. This document will walk you through creating FTP sites and implementing some common scenarios by directly editing the IIS configuration files. In this lab, you will walk through the steps to accomplish each of the following scenarios: Adding an FTP binding to an existing Web site Creating a new FTP site from scratch Adding virtual host names to an existing FTP site Adding SSL to an existing FTP site Configuring IP security for an existing FTP site Configuring user isolation for an existing FTP site Configuring.NET membership authentication for an FTP site Configuring IIS manager authentication for an FTP site Scenario Prerequisites Estimated Time to Complete This Lab Computers used in this Lab 60 Minutes ContosoWeb1 The password for the Administrator account on all computers in this lab is: pass@word1 Page 3 of 26

Exercise 1 Installing the Microsoft FTP Publishing Service for the IIS 7 Complete the following tasks on: ContosoWeb1 1. Launch the Windows Server 2008 Enterprise virtual machine and log on a. If the ContosoWeb1 virtual machine is not already running, start it using Virtual PC on the physical host computer. b. Press RIGHT ALT+DELETE to launch the Logon dialog box. c. Log on to the ContosoWeb1 Virtual PC with the following credentials: User name: Administrator Password: pass@word1 d. Click OK. Note: You may enter full-screen mode by pressing RIGHT ALT+ENTER. You may exit full-screen mode at any point by pressing the key combination again. 2. Install the FTP Publishing Service a. Open Windows Explorer. b. Navigate to E:\Lab Files\Collateral\Lab 9. c. Double-click ftp7_x86.msi to launch the Microsoft FTP Publishing Service for IIS 7 installer. d. On the Welcome screen, click Next. e. On the End-User License Agreement screen, check I accept the terms in the License Agreement, and then click Next. f. On the Custom Setup screen, click Next. g. On the Ready to install screen, click Install. h. When the installation is complete, click Restart IIS. This is required to enable the new FTP Service. i. The iisreset.exe application will run. Once it has completed, click Finish to close the wizard. j. In the already open Explorer window, double-click ftplabprep.cmd. This script prepares files and folders for use in the upcoming FTP exercises. Page 1 of 26

Exercise 2 Introducing IIS 7 FTP Administration 1. Integrated Publishing a. Click Start Internet Information Services (IIS) Manager. b. In the Internet Information Services (IIS) Manager window, expand CONTOSOWEB1, expand Sites, and then select Default Web Site. c. In the Actions pane, click Add FTP Publishing. d. On the Binding and SSL Settings screen, under SSL, uncheck Require SSL, and then click Next. e. On the Authentication and Authorization Information screen, under Authentication, select Anonymous. f. Under Authorization, select Anonymous users from the Allow access to dropdown list. g. Under Permissions, check the Read box, and then click Finish. Page 2 of 26

h. In the left pane, right-click Default Web Site, select Refresh, and then press F5. Notice that your site now has FTP-related options at the Home view. i. Double-click FTP Authentication. Notice that anonymous authentication has been enabled because you specified it earlier in the FTP Publishing Wizard. Page 3 of 26

j. Click Default Web Site to return to the Home view. k. Double-click FTP Authorization Rules. Notice that the Anonymous Read permission you specified in the wizard has been configured here. l. Click Default Web Site to return to the Home view. m. Double-click FTP Directory Browsing. Here you can change directory listing style and options. Checking the Available bytes option here will show free space to connected users, and reflects Windows Server 2008 disk quotas if enabled. Page 4 of 26

n. Click Default Web Site to return to the Home view. o. Double-click FTP Messages. p. Under Message Behavior, check Support user variables in messages. q. In the Welcome box, enter Hello %UserName%! r. In the Actions pane, click Apply. s. Click Default Web Site to return to the Home view. t. Open a Command Prompt. u. Type the following to test the new FTP site: ftp localhost v. When prompted, log in as user Anonymous with a blank password. Note that the welcome message you set up earlier says Hello Anonymous! which reflects the user you are logged in as. w. Type dir and press Enter. Notice that you re connected to the root of your default Page 5 of 26

Web site. You can view and download files, but you don t have write access. x. Type bye and press Enter to sign off the FTP server, and then close the Command Prompt. y. In the Internet Information Services (IIS) Manager window, in the Actions pane, click Bindings. Here you can see the FTP binding which was created by the wizard. If you wanted to quickly and easily disable integrated publishing in one step, you would remove this binding. z. Click Close to dismiss the Site Bindings window. Page 6 of 26

Exercise 3 Using FTP over Secure Sockets Layer (SSL) 1. Create a certificate for use with FTP over SSL a. In the Internet Information Services (IIS) Manager window, click CONTOSOWEB1. b. In the Feature pane, double-click Server Certificates. c. In the Actions pane, click Create Self-Signed Certificate. This does not reflect security best practices, but allows us to easily demonstrate the certification functionality in a lab environment. d. On the Specify Friendly Name screen, enter My FTP Certificate and then click OK. e. In the Connections pane, click Default Web Site. f. Double-click FTP SSL Settings. g. In the SSL Certificate drop-down list, select My FTP Certificate. Page 7 of 26

h. Under SSL Policy, confirm that Allow SSL connections is selected. i. In the Actions pane, click Apply. 2. Test SSL FTP Connection Note: Since you have specified Allow SSL connections as the SSL Policy, you have the option of using SSL during your FTP session, but it is not required. We will now use an SSL-enabled command line FTP application (called ftps) to test the newly enabled functionality. a. Open a Command Prompt. b. Type the following command to open a standard (non-ssl) connection to the FTP server: ftps localhost c. Log in as Anonymous with a blank password as before. Note: You are now connected without SSL. d. To enable SSL, type SSL on and press Enter. Note: Notice the messages indicating the SSL has been enabled for both command and data. e. Type bye and press Enter to log off. 3. Change configuration to require SSL connections a. Switch back to the IIS Manager, and then, in the FTP SSL Settings screen, under SSL Policy, select Require SSL connections. Page 8 of 26

b. Click Apply. c. Return to the Command Prompt, and type ftp localhost. d. Sign in as Anonymous. Notice that access is denied because the client does not support SSL. e. Type bye and press Enter to exit the FTP application. f. To establish an SSL connection, type ftps -p localhost. g. Sign in as Anonymous with a blank password. This time the connection is successful because you ve satisfied the server s SSL required policy. h. Type bye and press Enter. Page 9 of 26

4. Enable basic authentication to further enhance security Note: We will now disable anonymous access and enable basic Windows authentication to further enhance security. a. Switch back to the IIS Manager, and then click Default Web Site. b. Double-click FTP Authentication. c. Select the Anonymous Authentication mode and then, in the Actions pane, clickdisable. d. Select the Basic Authentication mode and then, in the Actions pane, click Enable. e. In the Connections pane, click Default Web Site to return to the Home view. f. Double-click FTP Authorization Rules. g. Select the Allow rule for Anonymous Users and then, in the Actions pane, click Remove. h. Click Yes to confirm the removal of anonymous authorization. i. In the Actions pane, click Add Allow Rule. j. In the Add Allow Authorization Rule window, select the Specified users radio button. k. Enter Administrator as the user, check both Read and Write permissions, and then click OK. Page 10 of 26

l. In the Connections pane, click Default Web Site to return to the Home view. m. Double-click FTP SSL Settings. n. Select the Custom radio button, and then click Advanced. Note: Notice here you have granular control over how SSL policy is applied to both the control channel and data channel. For example, you may wish to allow users to scan data with a virus solution, so you could set Control Channel SSL to Require only for credentials, and then set Data Channel SSL to Deny, ensuring that the data is unencrypted and therefore open to scanning. Note that in order for all this functionality to be effective, you need to ensure the clients connecting to the server support SSL. o. Click Cancel to close the window. Page 11 of 26

p. Under SSL Policy, select Allow SSL connections, and then click Apply. 5. Test the new authentication and authorization settings using FTP over SSL a. Launch a Command Prompt. b. Type the following command to test the new credentials: ftps -p localhost c. Enter a user name of Administrator with a password of pass@word1. d. Enter the following command to confirm that you now have full permissions: del test.png Note: The file will be successfully deleted since you specified Read and Write permissions in the wizard. e. Type bye and press Enter. f. Close the Command Prompt. Page 12 of 26

Exercise 4 Using Virtual Hosts 1. Set up another site to prepare for the virtual host steps a. In the Internet Information Services (IIS) Manager window, in the Connections pane, click Sites. b. In the Actions pane, click Add Web Site. c. In the Add Web Site window, under Site Name, enter Contoso. d. Under Physical path, browse to C:\inetpub\webroot\contoso. e. Under Host name, enter www.contoso.msft and then click OK. 2. Add a virtual host to the default Web site's FTP binding a. In the Connections pane, click Default Web Site. b. In the Actions pane, under Edit Site, click Bindings. c. In the Site Bindings window, select the ftp binding and then click Edit. d. In the Edit Site Binding window, under Host name, enter ftp.example.msft, and then click OK. Page 13 of 26

e. Click Close to dismiss the Site Bindings window. 3. Add FTP Publishing to the Contoso site including a virtual host a. In the Connections pane, click Contoso. b. In the Actions pane, click Add FTP Publishing. c. In the Binding and SSL Settings screen, under Virtual Host, enter ftp.contoso.msft. d. Under SSL, select the My FTP Certificate and uncheck Require SSL. e. Click Next. f. On the Authentication and Authorization Information screen, under Authentication, select Basic. g. Under Authorization, select Specified users, and enter Administrator into the text box. h. Under Permissions, select Read and Write, and then click Finish. Page 14 of 26

4. Use virtual hosts in credentials to connect to different FTP servers at the same IP a. Launch a Command Prompt. b. Type ftp localhost. c. Enter a user name of ftp.contoso.msft Administrator, with a password of pass@word1. d. Type dir and press Enter. Note: Notice that you are now browsing the content for the Contoso Web site you added earlier. e. Type bye and press Enter to disconnect. f. Type ftp localhost. g. Enter a user name of ftp.example.msft Administrator, with a password of pass@word1. h. Type dir and press Enter. Page 15 of 26

Note: Notice that you are now browsing the content for the Default Web Site, which differs from the Contoso content. i. Type bye and press Enter to disconnect. Page 16 of 26

Exercise 5 User Isolation and Virtual Directories 1. User isolation a. Switch to the Internet Information Services (IIS) Manager window. b. In the Connections pane, click CONTOSOWEB1. c. In the Features view, double-click FTP Directory Browsing. d. Under Directory Listing Options, select Virtual directories, and then click Apply. e. In the Connections pane, click Default Web Site. f. In the Features view, double-click FTP User Isolation. Note: Notice the two sections. First, under Do not isolate users, there are two settings. These settings will start the user in either the FTP root or their user name directory, but do not restrict directory changes to other areas of the site. The second section, Isolate users, has three settings. The first is a new feature, user name directory (disable global virtual directories). In this option, global virtual directories are disabled to enable user-specific virtual directories. This feature ensures that users cannot navigate to other virtual directories that contain content they should not be able to view or modify. This exercise will focus on using the new functionality provided by this feature. The second option, user name physical directory (enable global virtual directories) is backward-compatible with the implementation in IIS 6. The IIS 6 implementation partially isolates users with a physical directory, but still allows them to view global virtual directories. g. Select User name directory (disable global virtual directories), and then, in the Actions pane, click Apply. Page 17 of 26

h. In the Connections pane, right-click the Default Web Site and select Add Virtual Directory. i. In the Add Virtual Directory window, under Alias, enter LocalUser. j. Under Physical path, enter c:\inetpub, and then click OK. k. In the Connections pane, right-click the LocalUser virtual directory and click Add Virtual Directory. l. In the Alias text box, enter Administrator. m. In the Physical path text box, enter c:\inetpub\wwwroot, and then click ok. Page 18 of 26

. Note: Now let's assume that Administrator also needs Web authoring rights to the Contoso site. We can use a virtual directory to accomplish this. n. In the Connections pane, right-click the Administrator virtual directory, and then click Add Virtual Directory. o. Under Alias, enter Contoso. p. Under Physical path, enter c:\inetpub\webroot\contoso, and then click Ok. q. Open a Command Prompt. r. Type ftp localhost. s. Connect using ftp.example.msft Administrator with a password of pass@word1. t. Type dir and press Enter to see your home directory from the client perspective. Page 19 of 26

Note: Notice that the Administrator virtual directory places you into the Default Web Site root, and that you also have a subfolder for Contoso. Feel free to navigate the folders and note that the Contoso virtual directory is specific to Administrator and not accessible to other users. Page 20 of 26

Exercise 6 Non-Windows Authentication 1. Non-Windows Authentication a. In the Internet Information Services (IIS) Manager window, in the Connections pane, click the CONTOSOWEB1 node. b. In the Features view, double-click Management Service. c. In the Management Service screen, under Identity Credentials, select Windows credentials or IIS Manager credentials. d. Under SSL certificate, select My FTP Certificate. e. In the Actions pane, click Apply. f. In the Actions pane, click Start to start the WMSVC service. g. In the Connections pane, click CONTOSOWEB1. h. Double-click IIS Manager Users. i. In the Actions pane, click Add User. j. Enter a User name of Contoso, a password of pass@word1, and then click OK. Page 21 of 26

k. In the Connections pane, click Default Web Site. l. Double-click FTP Authentication. m. Select the Basic Authentication mode, and then in the Actions pane, click Disable. n. In the Actions pane, click Custom Providers. o. Check the box next to IisManagerAuth, and then click OK. p. In the Connections pane, click Default Web Site. q. Double-click FTP Authorization Rules. r. Select the Allow rule for Administrator, click Remove, and then click Yes to confirm. s. In the Actions pane, click Add Allow Rule. t. In the Add Allow Authorization Rule window, select the Specified users radio button, and enter Contoso. u. Under Permissions, select Read and Write, and then click OK. Page 22 of 26

v. In the Connections pane, click Default Web Site. w. In the Features view, double-click IIS Manager Permissions. x. In the Actions pane, click Allow User. y. In the Allow User window, select the IIS Manager radio button, enter Contoso in the text box, and then click OK. Page 23 of 26

Note: The following three steps are necessary because we set user isolation to user name directory in Exercise 5. z. In the Connections pane, right-click the LocalUser virtual directory and click Add Virtual Directory. aa. In the Alias text box, enter Contoso. bb. In the Physical path text box, enter c:\inetpub\webroot\contoso, and then click ok. cc. Launch a Command Prompt. dd. Type ftp localhost. ee. Authenticate with a user of ftp.example.msft Contoso and password of pass@word1. Page 24 of 26

Note: You are now connected using the IIS Manager user Contoso, which enhances security by allowing you to delegate administration to Web authors without granting inappropriate access. Since it is not present in the local windows user database or Active Directory, this account is unable to log in to the local machine. ff. Close the Command Prompt. Page 25 of 26