FTP

With the rich file sharing features at Control Panel > File Services > FTP, you can turn your Synology Router into an FTP (File Transfer Protocol) server, allowing users to easily access and manage folders or files stored on the USB storage or external drives connected to your Synology Router. It is designed to make storing and sharing files within your local network quick and simple, allowing you to directly access data on the attached storage devices without going through the hassle of logging into SRM every time.

In this article, you will learn how to set up FTP and related file transfer services to access and share files on the attached storage devices, as well as manage advanced settings, such as encryption service, transfer log, and transfer speed limits.

Contents

  1. Configure FTP/FTPS service settings
  2. Configure SFTP service settings
  3. Manage advanced FTP settings (optional)

1. Configure FTP/FTPS service settings

You can enable FTP services to allow clients to access folders and data on the external storage devices. Before enabling FTP, please check the firewall settings for FTP service first (at Network Center > Security > Firewall) and make sure the following TCP ports have been enabled: 21 (default control connection), 20 (data connection for active mode) and 55536-55567 (data connection for passive mode).

To enable FTP service:

  1. Under the FTP / FTPS, you can tick the following checkboxes:
  2. Enter the following fields or tick the checkboxes if necessary:
  3. Once you have successfully enabled FTP service on your Synology Router, you can start accessing files on connected storage devices via FTP using your web browser or an FTP client. Please refer to this tutorial for detailed instructions.

To restrict FTP connections:

  1. Under the FTP / FTPS section, enable either FTP or FTP SSL/TLS encryption service, and then click Connection Restriction at the bottom.
  2. Select one of the following options:

Note:

2. Configure SFTP service settings

SFTP is a file transfer protocol built as an extension to the Secure Shell (SSH) protocol. SFTP only requires one TCP port number. In addition, private and public keys can be used to authenticate users without passwords. However, transfer speeds are slower and consume more system resources due to encryption.

To enable SFTP service:

  1. Under the SFTP section, tick the Enable SFTP service checkbox.
  2. Set the port number for the SFTP service.

Note:

3. Manage advanced FTP settings (optional)

You can also manage various advanced settings, such as enabling speed limit and file transfer logging, enabling anonymous users to access shared folders, or changing users' root home for FTP transfer.

To enable FTP file transfer logging:

  1. Make sure FTP or SFTP service has been enabled, and then click Advanced Settings under the General section.
  2. Tick Enable FTP file transfer log to record the logs of downloaded or uploaded files.

Note:

To create a root directory change rule:

  1. Make sure FTP or SFTP service has been enabled, and then click Advanced Settings under the General section.
  2. Tick Change user root directories and click Select User. In the pop-up window, click Add.
  3. In User or group, select the item to which this rule will be applied.
  4. Select which root directory will be available upon user login. Choose one of the following:
  5. Click OK.
  6. After all the rules are added, click Apply to save the settings. This way, the selected users can only access the specified folders when they log into SRM via FTP.

Note:

To enable anonymous FTP access:

  1. Make sure FTP or SFTP service has been enabled, and then click Advanced Settings under the General section.
  2. Tick Enable Anonymous FTP to allow anyone to log into Synology Router device's FTP service (with the anonymous or ftp account) and access specified shared folders.
  3. You can also tick Change Anonymous root, and select a shared folder from the drop-down menu to change anonymous FTP user's login directory.

To apply default UNIX permissions:

  1. Make sure FTP or SFTP service has been enabled, and then click Advanced Settings under the General section.
  2. Tick Apply default UNIX permissions. The permissions will be applied when the system is uploading or creating files and folders. Applied permissions are the same as permissions applied by the UNIX command umask. When this option is enabled, UNIX permissions are 644 for files and 755 for folders. When this option is disabled, UNIX permission is 666 for files and 777 for folders. The default umask value is 022.

Note:

To set speed limits for FTP data transfer:

  1. Make sure FTP or SFTP service has been enabled.
  2. Under the General section, determine whether you wish to set speed limits, and whether you wish to implement such speed limits at specific periods of time only. This is a server-wide setting and will override the settings of individual users.
    Note: Selecting No speed limit will disable the speed limit settings for all users.
  3. Click Speed Limit Settings to edit the settings for individual users. For each user, you can select one of the following:
  4. Click Apply to save the settings. This way, the maximum usable bandwidth for specific users transferring files via FTP will be controlled according to the speed limit specified above.