Hello everyone, I’ve been thinking about this for a bit and am looking for opinions/alternatives.

Essentially, I’d like to encrypt my shares (NFS/Samba) on my local network. I’m awake that Kerberos is a good option with NFS, but I was hoping for something simpler. The other idea I have right now is to use stunnel with NFSv3/Samba to encrypt my traffic but I don’t know if this is a good idea.

How are you doing it? What do you suggest?

Thanks!

@waigl@lemmy.world
link
fedilink
English
89M

Is sshfs an option? Unfortunately, I don’t think you can put that into /etc/fstab, though…

@moh9aiTh@lemmy.world
link
fedilink
English
11
edit-2
9M

Actually, you can. Either on boot or on demand. 👍

@waigl@lemmy.world
link
fedilink
English
29M

Interesting. Though it does seem to to require your private key to be unencrypted…

@kevincox@lemmy.ml
link
fedilink
English
19M

Well passwordless. But you can put it on an encrypted partition.

@waigl@lemmy.world
link
fedilink
English
19M

Well passwordless.

Same thing in this context. But sure, an encrypted partition would work.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
39M

Would this be an ideal solution to share media from the NAS to the media server?

@waigl@lemmy.world
link
fedilink
English
3
edit-2
9M

Dunno about ideal, but it should work.

It does have quite a bit of overhead, meaning it’s not the fastest out there, but as long as it’s fast enough to serve the media you need, that shouldn’t matter.

Also, you need to either mount it manually on the command line whenever you need it or be comfortable with leaving your SSH private key in your media server unencrypted. Since you are already concerned with needing to encrypt file share access even in the local network, the latter might not be a good option to you.

The good part about it is, as long as you can ssh from your media server to your NAS, this should just work with no additional setup needed.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
29M

Thanks, I’ll think more on this

@kanzalibrary@lemmy.ml
link
fedilink
English
1
edit-2
9M

Maybe you can experiment Croc if you want simplest way.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
19M

I would like this for my media server, basically like a drop-in replacement for NFS shares. I still need it to be some sort of share instead of having to prompt it to send media across. Great project though, thanks

@kanzalibrary@lemmy.ml
link
fedilink
English
19M

my pleasure…

Lemmy Tagginator
bot account
link
fedilink
-29M

deleted by creator

cryptomator + syncthing.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
19M

I’d like this to be used as a share between my NAS and media server.

@mholiv@lemmy.world
link
fedilink
English
89M

NFS over WireGuard is probably going to be the best when it comes to encrypted file shares without the need to set up Kerberos. Just set up the WireGuard tunnel and export over those ips.

@1984@lemmy.today
link
fedilink
English
39M

I never thought of using nfs over wireguard. Very nice.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
29M

This is a pretty good idea. Thanks

@mholiv@lemmy.world
link
fedilink
English
19M

No problem. It should be wayyy faster than sshfs for the record. Both NFS and WireGuard are best in class tools.

@MigratingtoLemmy@lemmy.world
creator
link
fedilink
English
19M

That is wonderful to know

@the_third@feddit.de
link
fedilink
English
29M

That’s how my GPU instances for reencoding connect to my self deployed seed box instances. Works just fine.

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
  • 124 users / day
  • 419 users / week
  • 1.16K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 3.68K Posts
  • 74.2K Comments
  • Modlog