Intro

When you have a NAS to store your resources, but many are from web drives (e.g. Baidu Net Disk, Aliyun Drive, etc.), how can you save the resources from web drives to NAS quickly and remotely?

RPC (Remote Procedure Call) is a protocol that allows a program on one computer to run code on another. It is a widely used download protocol and can be used by us to achieve the remote download goal.

Setups in DSM

  1. Open Package Center in DSM, and install Container Manager.
  2. Open Container Manager, and go to Registry in the sidebar.
  1. Search aria2-pro in Registry, and download the p3terx/aria2-pro image.
  2. Run a container from the p3terx/aria2-pro image, add the resource limitation to 1GB, enter the same port in Local Port, map the docker/aria2/config to /config, docker/aria2/downloads to /downloads (create first).
  3. Search aria2ng in Registry, and download the p3terx/ariang image.
  4. Run a container from p3terx/ariang image, add the resource limitation to 1GB, and enter the same port in Local Port.
  1. Edit the port forwarding in your router’s configuration, to access the AriaNg port from other machines.

Setups in local machine

  1. Open <DSM IP>:<AriaNg Port>, visit the AriaNg, and fill in the Aria2 RPC Secret Token in AriaNg Settings - RPC (defaults to P3TERX, can be edited in docker/aria2/config/aria2.conf).
  2. Install Tampermonkey in your browser, and install the Panlinker script.
  3. Open your web drive, and configure your Panlinker settings (RPC address, port, token, etc.).
  4. Select the resources you want to download to NAS, click RPC Download, check the RPC parameters, and click Send all links.
  5. Check the AriaNg and docker/aria2/downloads, your downloads have started!