Seting up synology file sharing via cloudflare tunnel

What is the name of the domain?

lukaszmaj.com

What is the issue you’re encountering

I would like to use activate file sharing on Synology nas, but a firewall is set up on the local network that blocks access to the nas from the external network. I have set up cloudflare tunnel to make services on the nas publicly accessible and would like to know if there is way to also make file sharing work?

May I ask how big files or how large would they be and sharing them over a HTTP(S), or some other way via some specific port or a service like rsync, SAMBA, FTP, etc.? :thinking:

Hello,

Yes you can allow this via Cloudflare Tunnel.

To do this you must :

  • Create an application in Cloudflare Zero Trust under : Access/Applications
  • Name your app and in Application domain section, authorize your subdomain with the following paths:

wfmlogindialog.js
sharing/
webman/
fsdownload/

  • Then, in the Policies tab, create a Bypass rule (this is an example)
  • Save your application.

Once you’ve done this, you should be able to access your share file as long as your Synology share address starts with: https://your-domain-name.com/sharing/...

You can of course fine-tune the rules in Policies to authorize only certain people to access your service :slight_smile: