Total noob, but I set up TrueNAS/Nextcloud on an old laptop and it’s working great locally.

What would be the easiest secure way to access my files remotely from my phone and/or laptop?

Tailscale. Download it and you’ll be up and running in 5 minutes. Don’t use cloudflare tunnels unless you plan on opening it up to the public. Then you can go that route.

@jbarr@lemmy.world
link
fedilink
English
01Y

For restricted access, I add a Cloudflare Application in front of the Tunnel to provide authentication. Work’s like a charm, and the user never hits my services unless they successfully authenticate.

Yes I do that too with email authentication. But if he is using a personal server with no users then there is no need for that.

@jbarr@lemmy.world
link
fedilink
English
11Y

True, but then Tailscale needs to be installed on the remote device to connect. A Cloudflare Tunnel and Application can be accessed by pretty much any device. This was more appropriate for my use case. YMMV, of course.

For me it’s all about use case.

I use cloudflare tunnels for programs exposed to the open web (Nextcloud, Radicale, etc).

But I use tailscale for anything not, then I use tailscale (RD client, KDE Connect, Sonarr, etc) because it’s way too simple.

N-E-N
creator
link
fedilink
English
11Y

Hey, I’m testing it and I have it installed on my phone/PC/TrueNAS but having trouble getting access remotely (testing on data).

I think I have the part “Advertise Routes” wrong, how to I know what IP to put in exactly

You put the ip address that tailscale gives you along with the port number of your NextCloud instance.

N-E-N
creator
link
fedilink
English
1
edit-2
1Y

Is the port number the 4 numbers after the : which I use as a url to access Nextclouds web gui?

Also that means I should be adding two routes?

Yes the port number is the last 4 digits after the :.

Tailscaleip:nextcloudport

N-E-N
creator
link
fedilink
English
1
edit-2
1Y

Sorry for the questions, how do I know which Tailnet IP to use? Each device seems to get a different address and a I tested a couple and neither worked

A tutorial I watched used 192.168.3.0/24. I tested this and it didn’t give me any errors and it connected to tailscale, but I couldn’t actually access things remotely

You use the tailscale ip address of whatever device your hosting NextCloud from

Second on that. The whole “it just works” slogan was frustrating when it didn’t work at first, but once it finally for running it was great

N-E-N
creator
link
fedilink
English
11Y

What exact route did u advertise? I’m having trouble getting it working

Trust me, you don’t want to get instructions from me. Just look at my post/comment history haha everything I touch breaks in ways that are hard to diagnose. I had to reach out to tech support, they got back to me in <12hrs

N-E-N
creator
link
fedilink
English
21Y

Haha okay fair enough np

Create a post

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don’t control.

Rules:

  1. Be civil: we’re here to support and learn from one another. Insults won’t be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it’s not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don’t duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

  • 1 user online
  • 125 users / day
  • 420 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog