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
    arrow-up
    8
    ·
    11 months ago

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

      • waigl@lemmy.world
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        11 months ago

        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.

      • waigl@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        11 months ago

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

          • waigl@lemmy.world
            link
            fedilink
            English
            arrow-up
            1
            ·
            11 months ago

            Well passwordless.

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

  • mholiv@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    11 months ago

    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.

    • MigratingtoLemmy@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      11 months ago

      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