Home > Articles

This chapter is from the book

FTP Service

The File Transfer Protocol service is the most commonly used method of transferring large files across the Internet. Using the TCP/IP protocol, an FTP client makes a connection to an FTP host, which is also known as the FTP server. Once connected, the client can upload, download, and alter files on the FTP server as their permissions allow.

FTP is the transfer protocol of choice due to its ability to send files as binary. Other forms of data transfer, such as HTTP, can transfer large files. However, they transfer the file as ASCII, which can cause data corruption. Since this is such a popular tool, Microsoft included FTP in the Internet Information Services package.

To configure the FTP service, you will need to open the Internet Service Manager by clicking Start Control Panel Administrative Tools Internet Information Services. This will open a window similar to Figure 13.48.

The ISM, as previously discussed, is the control panel for the WWW and FTP services. In addition, it details the status of each of the services to keep administrators informed. In Figure 13.48, the FTP service is running on "All Unassigned" IP addresses at port 21. This is the typical default setup that you will see upon entering the ISM.

Figure 13.48Figure 13.48 Internet Service Manager—FTP Sites.

Although other ports can be used, port 21 is the standard for the FTP service. Using a different port can provide a level of safety from random scanners, but it can also confuse clients attempting to connect with programs configured for the default port.

The following pages show you how to configure each of the FTP properties for maximum security.

Master FTP Site Properties

Control of the FTP service is layered. Just as in the WWW service, the FTP has a root folder that holds all the client sites. While there may be only one FTP site on the computer, the server can hold multiple sites for numerous clients or purposes. Each site may have its own properties and settings. However, to maintain the highest level of security, it is best to configure the root site at the highest security settings possible. Then, configure each individual site as needed.

The following describes how to configure the settings in each section to lock down the root site. Once we have covered the Master FTP Site Properties, we discuss the Default FTP Site Properties.

To access the Master FTP Site Properties sheet (Figure 13.49), right-click on FTP Sites and select Properties. Upon opening, you will see a window with three tabs: Security Accounts, Messages, and Home Directory.

Figure 13.49Figure 13.49 Master FTP Site Properties—Security Accounts sheet.

Security Accounts Sheet

Allow Anonymous Connections. This section is used to control the anonymous user settings. Depending on the purpose of the FTP server, you may want to disable anonymous connections. By enabling anonymous connections, you allow someone to connect to your FTP server with the user name "anonymous" and an email address as the password, which can be easily forged. This is why you must ensure that any such sites created are done so with read-only permissions.

In addition to allowing anonymous connections, you can enable the server to accept ONLY anonymous connections. The reason for this is to avoid a situation where a user's name can be sniffed from the network. Due to the nature of FTP data transfer (i.e., clear text), it is best to avoid having users connect to the server with a user name and password. By enabling Allow only anonymous connections, the FTP server will reject any clients who connect with user information. Ironically, any user who is rejected has already sent their information and is subject to having their user info captured.

To ensure the anonymous FTP logon matches the account created by the server during install, keep Allow IIS to control password checked.

FTP Site Operators. The FTP Site Operators are those accounts that are used to administer the account. This should always consist of local accounts, as the computer the service is running on should not be included in any domain. If, however, the server is part of a network, you can use local, global, or universal accounts.

Messages Sheet

Banner/Welcome/Exit/Maximum connections. This sheet, shown in Figure 13.50, defines the messages the client will see when connecting to and exiting from the server. You may wish to include a legal disclaimer at this entry point.

Figure 13.50Figure 13.50 Master FTP Sites Properties—Messages sheet.

Home Directory

FTP Site Directory. The FTP Site directory has three options you can select. However, by default the selection is secure. Log visits is the only box that should be checked. While enabling Read and Write may be acceptable for some situations, these should typically remain disabled. These options can be enabled at the Site level.

Directory Listing Style. The directory listing style is an option that is completely up to the Administrator. Since FTP originated within the UNIX operating system, some people are more comfortable with this style of listing than the MS-DOS style (Figure 13.51).

Figure 13.51Figure 13.51 Master FTP Site Properties—Home Directory sheet.

Default FTP Site Properties

Under the Master FTP Site folder you will find the specific FTP site information. You can create multiple sites for a host of users or purposes. If the Master FTP Sites configuration is correct, any new site should be locked down upon creation, with the exception of Read properties.

The following discusses in detail the sections and their respective settings for securing the FTP Server at the Site level.

FTP Site (Figure 13.52).

Figure 13.52Figure 13.52 Default FTP Site Properties—FTP Site sheet.

Identification. This section is used to configure several important options. The first item in this section is the FTP site description. If there is only one site, this option is not important. However, if the FTP server is destined to host multiple sites, careful and descriptive labeling is important.

The second option is available in case there are multiple IP addresses assigned to the server (e.g., an FTP site serving both the Internet and local network). In this case, it may be necessary to permit only one IP address access to the FTP site.

The final option in this section is the TCP port the FTP server will use as the control port. This is the port with which clients will establish their initial connection. If the site is to be available to the general public, port 21 is recommended. However, if the site is to be private, moving the port can help protect the server against port-scanning hackers.

Connection. In order to protect the FTP server against a Denial of Service (DoS) situation, it is important to configure the site to limit both the number of connections and the timeout for inactive sessions. The default settings are adequate. However, if you are under consistent attack, you may wish to tighten these settings.

Enable Logging (Figure 13.53). This contains one of the most important settings for FTP administrators. An FTP server's log file is like a diary. It contains the address and actions of every user who connects or attempts to connect. If a log file is available after a hacker gains access to the server, it is possible to trace the activities of the hacker and repair or replace the files that were damaged.

Figure 13.53Figure 13.53 Extended Logging Properties.

By default, the settings for logging are correct, with the exception of the Log file location. If an experienced hacker gains access, the last thing she will delete or alter is the log file. If an FTP administrator hides the log file in an inconspicuous place, it makes it more difficult for the hacker to damage the logs. For this reason, we recommend the placement of the log file on another drive and, if possible, a different computer. To relocate the log file, click the Properties button and then click Browse to specify a new log file location.

In addition, the FTP server can be configured to capture supplementary information that can be useful when tracking traffic or troubleshooting a connection. This is also available in the log Properties, under the Extended Properties tab.

Current Sessions. The final section on this page is found by clicking the Current Session button. This opens a window, shown in Figure 13.54, that lets you view the current users, their IP address, and how long they have been connected. By monitoring this dialog box, you can keep track of the number of users and even disconnect someone if they are attempting multiple connections or if they are sharing accounts.

Figure 13.54Figure 13.54 FTP User Session window.

Security Accounts

Allow Anonymous Connections. This section is used to control the anonymous user settings. Depending on the purpose of the FTP server, you may want to disable anonymous connections. However, you will typically allow anonymous connections. By doing so you allow someone to connect to your FTP server with the user name "Anonymous" and an email address as the password, which can be easily forged. This is why you must ensure that any sites created are done so with read-only permissions.

In addition to allowing anonymous connections, you can enable the server to accept ONLY anonymous connections. The reason for this is to avoid a situation where a user's name can be sniffed from the network. Due to the nature of FTP data transfer (i.e., clear text), it is best to avoid having users connect to the server with a user name and password. By enabling Allow only anonymous connections, the FTP server will reject any clients who connect with user information. Ironically, any user who is rejected has already sent their information and is subject to having their user info captured (Figure 13.55).

Figure 13.55Figure 13.55 Default FTP Site Properties—Security Accounts sheet.

To ensure the anonymous FTP logon matches the account created by the server during install, keep Allow IIS to control password checked.

FTP Site Operators. The FTP Site Operators are those accounts that are used to administer the account. This should always consist of local accounts, as the computer the service is running on should not be included in any domain. If, however, the server is part of a network, you can use local, global, or universal accounts.

Messages

Banner/Welcome/Exit/Maximum connections. This sheet defines the messages the client will see when connecting and exiting the server. To help protect your system against misuse, it is suggested that you put a security warning or guidance policy in the Welcome message (Figure 13.56).

Figure 13.56Figure 13.56 Default FTP Site Properties—Messages sheet.

When a user connects to the FTP server they will see a message similar to that in Figure 13.57.

Figure 13.57Figure 13.57 Sample FTP Welcome message.

Home Directory (Figure 13.58).

Figure 13.58Figure 13.58 Default FTP Site Properties—Home Directory sheet.

Content Location. IIS includes a feature that enables a user to point any resource requests to a physical location on a remote computer. Using this feature can serve to protect a system by separating the requested resource from the FTP server. This prevents hackers from using folder-traversing vulnerabilities to gain access to the Internet system. However, this could allow one computer to access files on another computer.

FTP Site Directory. The FTP Site directory has three options you can select. However, by default the selection is secure. Log visits is the only box that should be checked. While enabling Read and Write may be acceptable for some situations, typically these should remain disabled. These options can be enabled at the Site level.

Directory Listing Style. The directory listing style is an option that is completely up to the Administrator. Since FTP originated within the UNIX operating system, some people are more comfortable with this style of listing than MS-DOS's style.

Virtual FTP Directories

IIS FTP server allows the use of virtual directories. This simulates a hierarchal directory structure for the client, but in reality allows the directories to be located anywhere on the local computer or remote computer on the network. This setup would be useful if an FTP server had to span a cluster of servers, or if the FTP folder was mapped to a user's personal computer.

To create a virtual directory:

  1. Open the ISM.

  2. Right-click on the Default FTP Site folder.

  3. Select Properties New Virtual Directory (see Figure 13.59).

    Figure 13.59Figure 13.59 Starting the FTP Virtual Directory Creation Wizard.

  4. Click Next at the Directory Creation Wizard welcome screen, shown in Figure 13.60.

    Figure 13.60Figure 13.60 Directory Creation Wizard welcome screen.

  5. Enter an Alias name and click Next. See Figure 13.61.

    Figure 13.61Figure 13.61 Virtual Directory Creation Wizard.

  6. Click Browse to point the wizard to the desired path/folder (Figure 13.62).

    Figure 13.62Figure 13.62 Virtual Directory Creation Wizard (FTP Site Content Directory)

  7. Check either Read or Write as circumstances require. See Figure 13.63.

    Figure 13.63Figure 13.63 Virtual Directory Access Permission configuration.

    CAUTION

    You should not check both Read and Write. This allows a hacker to see what other people have placed in the directory and facilitates the unauthorized deletion or modification of previously uploaded files.

  8. Click Next and then Finish to close the wizard.

Your new Virtual Directory is now set up. To view or modify the settings of the virtual directory, right-click the new directory and select Properties. This will open a window similar to Figure 13.64. From this window you can adjust the content location, local path, and directory permissions.

Figure 13.64Figure 13.64 Virtual FTP Directory properties.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020