Trying to map drives from synology nas to Windows over cloudflare tunnel

Trying Cloudflare tunnel for the first time. I have already setup docker container with cloudflared in synology nas and I can successfully access the Synology management webpage through a client device over the internet.
But my team needs access to the files in the NAS, So ideally would like to map the folders as drives over the internet in windows explorer just like smb shared files in local network. Not able to do this. Tried the steps mentioned in this article using cloudflared

[type or paste code here](

But cannot connect. Dont know how to setup docker to execute two commands at startup ( one with the token to connect to the tunnel and the other to provide access to the file sharing port as mentioned in the above help page).

Please help out

hi @agrimagc. You can open the running container using docker exec command.

  1. Add one startup command to your docker file and run it
    docker run <image-name>

  2. open the running container using
    docker exec -it <container-id> sh

You can try this and see if that solves the issue:

Dont know how to setup docker to execute two commands at startup

Make sure:

  • you have upgraded to the latest version of cloudflared.
  • Ensure the required ports and IPs are allowed (where necessary) for Tunnels and our API.
  • Make sure to follow the debugging steps here the cloudflared logs is the source of truth here, and will show you quite many things to check on debug mode.

Note here that there are 2 ways today to create tunnels, and multiple ways to add the required debugging flags:
The instructions regarding setting up the logs above need to be followed differently depending on whether you set up your tunnel locally, or remotely (via the dashboard):