Speedtest with the “curl” command in a terminal session from your computer to download a file from the Synology NAS
Prerequisites
- make sure FTP is running on the Synology NAS
Control Panel, File Services, FTP, select: enable ftp service
- For a speedtest create a Synology user with permissions to the folder where the file is located used for the speedtest
Control Panel, User, Create
Give folder permissions to this Synology user where the file is placed for download
- Place a large file, 10 GB in this shared folder on the Synology NAS
You could use the file downloaded in the following instruction.
Speedtest Synology NAS
Download from your computer with the “curl” command a file from a Synology NAS running FTP service for a speedtest between your computer and the Synology NAS.
- On your computer download this file via the “curl” command in a terminal session:
curl -O ftp://<servername>/<shared folder>/<name file> –user ‘<Synology User>:<password>’
For example:
curl -O ftp://mynas.example.com/downloads/10000mb.bin –user ftptest:mypassword
for better security:
curl -n –netrc-file <file name, or path to file name> -O ftp://<servername>/<shared folder>/<name file>
-n, –netrc Must read .netrc for user name and password
–netrc-file file
Create a file for netrc:
file name contents:
machine <name Synology NAS-server>
login <ftp user on Synology NAS>
password <password ftp user on Synology NAS>
example file: netrc
machine mynas.example.com
login ftptest
password mypassword
For example:
curl –netrc-file netrc -O ftp://mynas.example.com/downloads/10000mb.bin