Samba on Debian VPS

Simple question (hopefully)…

Is it possible to run samba on a VPS server running Debian and be able to access the shared drive across the internet? If not, are there any other options for providing a shared drive to Windows, Linux and macOS clients?

-Andy.

Hi Andy,

Yes, it is possible, but you have to expose the SMB port to the outside. I did a quick search, and I found this link: .

However, in my opinion, I think it's possible to configure the SMB TCP port in a range above 40000, which makes it much more secure. In the link they suggested, there are some other applications.

Another possibility is to install Docker on your Ubuntu server and mount a Docker network drive that you can set up.

If you can't change the network port in the SMB configuration and want it to be a secure connection, it's also possible to tunnel it using a Cloudflare tunnel. You can set it up with a free Zero Trust account. Be aware that it has a high learning curve, but if you are familiar with networking, it's a great solution.
but there maight be easyer applications using docker. Of you are not familiar with docker, I reccomend learning about the possibilities.
Regards kameleke