News for hackers. Stuff that matters.
Re:The Cheapest NAS by jstanley on Wednesday July 03, 2024 @01:50PM (#40868349)
When people set up these NAS's, how are they accessing the files? NFS? SFTP?

And how are you accessing it when away from home? A VPN that you're permanently connected to? Is there a good way to do NAT hole-punching?

Syncthing kind of does what I want, in that it lets all my computers sync the same files no matter what network they're on, but it insists on always copying all the files ("syncing") whereas I just want them stored on the NAS but accessible everywhere.

Nextcloud kind of does what I want but when I tried it before it struck me as flaky and unreliable, and seemed to do a load of stuff I don't want or need.

Re:The Cheapest NAS by jnovek on Wednesday July 03, 2024 @01:59PM (#40868442)
Answering your questions in order:

  - On mine I use NFS and SMB which covers most possible clients.

  - I use an ssh bastion that I expose via Tailscale to connect to mine remotely.  So a VPN but it's wireguard based so it's not too intrusive.  I have a gig up, though, YMMV.

  - My NAS has 28TB of space.  I'm still working on backup strategy. So far it just has my Dropbox and some ephemera I don't care about losing on it.

  - Regarding other services: I use Dropbox pretty extensively but these days 2TB just isn't very much.  Plus it gets cranky because I have more than 500,000 files in it.
This is my personal setup but I think it's a bit different for everyone.
Re:The Cheapest NAS by Tijdreiziger on Wednesday July 03, 2024 @04:53PM (#40869889)
Wow! What kind of data are you generating that 2TB ‘just isn’t very much’? (Video editing?) All my personal files take up around 10GB in my Google Drive.
Re:The Cheapest NAS by Koffiepoeder on Wednesday July 03, 2024 @05:11PM (#40870053)
One example: If you take picture with a decent camera in raw format, your storage gets filled ridiculously fast. A short travel with a mere 200 pictures can easily be like 25M*200=5G. Another example: if you're doing any kind of AI training (especially picture based), the training materials can easily amount to many terrabytes.
Re:The Cheapest NAS by galkk on Wednesday July 03, 2024 @05:14PM (#40870071)
Google takeout of my personal pictures from Google photos takes 600gb+ alone. And I'm not avid picture taker (that's the archive since 2000s, I did upload a lot of my old dslr photos to google photos when it was unlimited). I guess if people make more personal videos, they will use more space easily
Re:The Cheapest NAS by Tijdreiziger on Wednesday July 03, 2024 @05:17PM (#40870103)
I think we probably have different definitions of ‘not an avid picture taker’ :D
Re:The Cheapest NAS by averageRoyalty on Wednesday July 03, 2024 @08:36PM (#40871371)
I'd say so. I take over 500GB of personal photos/videos per year, and I'm not a huge phone user.
Re:The Cheapest NAS by ClumsyPilot on Thursday July 04, 2024 @08:37AM (#40874426)
Even a router can do that these days, GLiNet routers have USB ports and SSH, you can setup such basic stuff

Most mid range routers allow SSH, and have decent CPU

Re:The Cheapest NAS by aspyct on Friday July 05, 2024 @12:13AM (#40879789)
glinet routers are amazing, but their file sharing lacks authentication sadly (well, mine does, at least). So anyone getting access to you network also gets access to your files.

It's mostly fine, until one of you devices gets compromised. Then it's not fine at all anymore.

Re:The Cheapest NAS by ssl-3 on Wednesday July 03, 2024 @03:36PM (#40869291)
I use Syncthing to synchronize my smaller datasets between my laptop, my phone, and my NAS. This covers all of my productive and creative scenarios.

On the LAN, I just use SMB. It is adequate for my needs.

For remotely accessing my collection of Linux ISOs, I use Plex.

Re:The Cheapest NAS by accrual on Wednesday July 03, 2024 @04:25PM (#40869653)
This is pretty much my setup as well!

Syncthing for a small collection of files I want available from all my machines - commonly used documents, photos, stuff I want quickly backed up or synced automatically.

Samba for my long term mostly-read rarely-write storage with larger files, ISOs, etc.

Re:The Cheapest NAS by xiwenc on Wednesday July 03, 2024 @04:57PM (#40869919)
Same here. I have wireguard vpn for the few times i need it to tunnel my traffic through home or need to access larger files not sync’ed with syncthing.

My nas is a Synology. Vpn is also used so that i can continue sending timemachine backups back home when i’m traveling.

Re:The Cheapest NAS by 486sx33 on Wednesday July 03, 2024 @02:11PM (#40868568)
Synology does all that. I run two one at home one at the office, my only complaint is that it’s a bit “idiot proof”… both other times the web based GUIi is great. Also has free software that punches through NAT and dynamic IPs works great (quickconnect.to) I use sftp, media server, primarily
Re:The Cheapest NAS by tgv on Wednesday July 03, 2024 @02:23PM (#40868672)
Synology can even serve as a macOS Time Machine.
Re:The Cheapest NAS by jll29 on Wednesday July 03, 2024 @04:43PM (#40869795)
I second that wholeheartedly, and I also run two 19" Synology NAS units, one at home and one at the office. All smooth sailing so far.

A colleague uses a QNAP instead, which he claims is better price/storage ratio at the expense of lesser software usability, and I'm okay paying a bit more of my own money (at home) as well as taxpayers' money (at work) on better usability, because it will likely pay off by saving time in the long run, as I currently don't have a dedicated sysadmin in my team.

The only question mark to date was when installing with non-Synology (enterprise SSD) drives I got a warning that mine were not "vendor sourced" devices, and decided not to take any risk and replace all drives with "original" Synology ones just because I can. This may be just disinformation from Synology to make their own customers nervous, and it reminds me of the "only HP toner in HP laser printers" discussion, but it would have been a distraction to investigate further, and my time is more valuable than simply replacing all drives.

Re:The Cheapest NAS by Tijdreiziger on Wednesday July 03, 2024 @04:56PM (#40869918)
Re:The Cheapest NAS by Aeolun on Wednesday July 03, 2024 @07:45PM (#40871137)
It seems a bit weird they’d disable the SMART fields just because the drive is not on their list. Those fields should work perfectly fine…?
Re:The Cheapest NAS by kstrauser on Wednesday July 03, 2024 @06:05PM (#40870427)
Beefier models (I have a DS923+ with the RAM bumped up to 32GB) can run Docker containers, too. I have all kinds of things running on mine.
Re:The Cheapest NAS by __mharrison__ on Thursday July 04, 2024 @10:34AM (#40875259)
Is ram upgradeable on these machines?
Re:The Cheapest NAS by kstrauser on Thursday July 04, 2024 @11:16AM (#40875561)
Mine is. It ships with a 4GB DIMM and I swapped in 2 16GB DIMMs. Not all models are.
Re:The Cheapest NAS by Vrondi on Wednesday July 03, 2024 @01:58PM (#40868432)
I usually just use SMB shares within my LAN. It serves my modest needs. I have used WebDAV or FTP in the past. Depends on the specific use. Away from home, VPN is essential. Too risky to just forward ports these days.
Re:The Cheapest NAS by nomius10 on Wednesday July 03, 2024 @01:58PM (#40868431)
An easy solution for the VPN part would be Zerotier / Tailscale. IIRC Zerotier uses chacha20 for encryption which is faster than AES, especially for a power-strapped SBC.
Re:The Cheapest NAS by jnovek on Wednesday July 03, 2024 @02:01PM (#40868471)
I tried to build a setup like this with OpenVPN years ago and OMG.

Tailscale/Wireguard has been such a big leap forward.

Re:The Cheapest NAS by joeyrobert on Wednesday July 03, 2024 @02:24PM (#40868682)
Seafile + Samba + OpenVPN is my stack. I use Seafile for a dropbox style file sync on my devices, and Samba for direct access. OpenVPN for remote access on all devices. Works quite well.
Re:The Cheapest NAS by ein0p on Wednesday July 03, 2024 @02:28PM (#40868718)
I’d replace OpenVPN with WireGuard at this point - WireGuard is a lot faster and the client software is pretty good. All of my Apple devices are set up to use VPN 100% of the time automatically if I’m not on home WiFi.
Re:The Cheapest NAS by josh64 on Thursday July 04, 2024 @09:37AM (#40874856)
Could you please share how you went about configuring your Apple devices to automatically switch to VPN?

Thanks!

Re:The Cheapest NAS by ein0p on Thursday July 04, 2024 @11:17AM (#40875571)
When you install WireGuard client, there's "On Demand" option there that you can enable. That option has two additional settings - it can turn WireGuard only for a particular list of SSIDs, or it can _not_ turn it on for a particular list of SSIDs. So you just add the SSID of your home WiFi to the list for which WireGuard will not be turned on. On macOS client there is an identical option. This works really well.
Re:The Cheapest NAS by accrual on Wednesday July 03, 2024 @04:23PM (#40869637)
Has anyone compared Seafile with Syncthing? I'm quite happy with Syncthing but always interested in trying out new setups.
Re:The Cheapest NAS by rcarmo on Wednesday July 03, 2024 @03:31PM (#40869257)
SMB + Tailscale and SyncThing for me. Both combos just work, although admittedly SMB over mobile connections _and_ a VPN can be iffy.
Re:The Cheapest NAS by theshrike79 on Wednesday July 03, 2024 @02:28PM (#40868721)
Tailscale works perfectly for remote access, I do "backups" with rsync over VPN nightly to an offsite location.

Syncthing over Tailscale is running smoothly too, it doesn't matter where my machines move, they find each other using the same internal address every time.

Re:The Cheapest NAS by sockaddr on Wednesday July 03, 2024 @02:02PM (#40868477)
> And how are you accessing it when away from home?

I usually just use zerotier for this, it's extremely lightweight

Re:The Cheapest NAS by aborsy on Wednesday July 03, 2024 @02:30PM (#40868749)
I use Tailscale, but I’m amazed that the size of the ZeroTier app is 2.6 MB versus 23MB for Tailscale.

How come ZeroTier is 10X smaller?

Re:The Cheapest NAS by avtar on Wednesday July 03, 2024 @04:43PM (#40869787)
Tailscale uses Go https://tailscale.com/security#tailscale-is-written-in-go which might explain the larger sizes.

A cursory look through https://github.com/zerotier/ZeroTierOne shows more C++ and some Rust. Not sure how much static linking is involved here.

Re:The Cheapest NAS by universa1 on Wednesday July 03, 2024 @01:58PM (#40868426)
Regarding the connectivity: tailscale... So far I am happy with them and the free plan hasn't been kneecapped afterwards (so far).
Re:The Cheapest NAS by stavros on Wednesday July 03, 2024 @03:16PM (#40869142)
Even if it is, you can run Headscale on a server somewhere (or just pay).
Re:The Cheapest NAS by BXlnt2EachOther on Wednesday July 03, 2024 @06:04PM (#40870421)
IIRC they have improved the free plan over time, and even mailed users suggesting the relaxed limits might enable moving from paid to free tier [1].

I barely use my tailnet now, might have more of a case for it later, but they are near the top of my "wishing you success but please don't get acquired by a company that will ruin it" list.

[1] https://news.ycombinator.com/item?id=35615848

Re:The Cheapest NAS by adastra22 on Wednesday July 03, 2024 @01:56PM (#40868410)
Depends on your use case. I just use scp and access the NAS box through Tor when traveling, so I don’t have to open up any ports.
Re:The Cheapest NAS by pmontra on Wednesday July 03, 2024 @02:12PM (#40868571)
SFTP for my other Linux devices, SMB by Samba for the rest of the world (mainly Android.)
Re:The Cheapest NAS by generalizations on Wednesday July 03, 2024 @01:59PM (#40868446)
Depends on what you need. I have a NAS with syncthing, and it's a combination.

- I use a lot of different folders within syncthing, and different machines have different combinations to save space where they aren't needed; the NAS has all of them.

- on the LAN, sshfs is a resilient-but-slower alternative to NFS. If I reboot my NAS, sshfs doesn't care & reconnects without complaint...last time I tried to use it, NFS locked up the entire client.

- zerotier + sshfs is workable-but-slow in remote scenarios

Note I'm mostly trying to write code remotely. If you're trying to watch videos....uh, good luck.

Re:The Cheapest NAS by loeg on Wednesday July 03, 2024 @02:31PM (#40868759)
I just use NFS on the LAN. No remote access.
Re:The Cheapest NAS by system2 on Wednesday July 03, 2024 @02:09PM (#40868549)
NFS + SMB.

Also I use SonicWall VPN to connect to my house to be in the network so it covers most of it. I also use Synology QuickConnect if I need to use the browser without VPN which also covers most urgent needs. Haven't failed me over a decade and my NAS also syncs with Synology C2 cloud which is also another peace of mind. I know it might sound unsafe a little having files stored on the cloud but it is what it is.

I won't play with half-baked library dependent homebrew solutions which cost way more time and cause headache more than commercial solutions. I won't open ports and forget them later either.

Re:The Cheapest NAS by sleepybrett on Wednesday July 03, 2024 @01:54PM (#40868392)
Mostly CIFS, I use tailscale to put my laptop inside of my home network wherever I go.
Re:The Cheapest NAS by lizknope on Wednesday July 03, 2024 @06:56PM (#40870827)
I use sshfs. If you can login via ssh then you can mount the remote server through ssh as a local drive.

https://github.com/libfuse/sshfs

For added security I limit my home ssh access to a handful of trusted IPs including my cloud VM. Then I set up an ssh tunnel from my hotel through the cloud VM to home. The cloud VM never sees my password / key

Re:The Cheapest NAS by matrss on Thursday July 04, 2024 @04:23AM (#40873281)
Its worth keeping this (from their readme) in mind though:

> However, at present SSHFS does not have any active, regular contributors, and there are a number of known issues (see the bugtracker).

Not that it is unusable or anything, it is still in widespread use, but I'd guess many assume it to be part of openssh and maintained with it, when it isn't.

An interesting alternative might be https://rclone.org/, which can speak SFTP and can mount all (of the many) protocols it speaks.

Re:The Cheapest NAS by vbezhenar on Wednesday July 03, 2024 @07:08PM (#40870919)
I used samba, it's supported everywhere. I also served files with HTTP server which might be convenient way for some use-cases. I also generated simple HTML-s with <video> which allowed me to easily view movies on my TV without all that nonsense.

My router has public IP so I didn't have any problems reaching it from the outside, so any VPN could work. Another approach is to rent some cheap VPS and use it as a bastion VPN server, connecting both home network and roadwarrior laptop.

No idea about any "integrated" solutions, I prefer simple solutions, so I just used ordinary RHEL with ordinary apache, etc.

Re:The Cheapest NAS by efxhoy on Wednesday July 03, 2024 @07:43PM (#40871127)
Samba and tailscale.
Re:The Cheapest NAS by turtlebits on Wednesday July 03, 2024 @10:29PM (#40871862)
SMB and Tailscale.
Re:The Cheapest NAS by heavyset_go on Wednesday July 03, 2024 @11:06PM (#40872029)
I use NFS over WireGuard. That way I can mount my resources wherever I go and it's encrypted whether I'm at home or out.
Re:The Cheapest NAS by Simon_ORourke on Thursday July 04, 2024 @01:54AM (#40872630)
Depending on the make and model - I've got a Synology NAS box and can't recommend them enough.

RAID support, NFS/SFTP/Samba support, a nice Web UI to set up access and configure sharing, and even the ability to enable sharing outside your own NAT.

Re:The Cheapest NAS by tallanvor on Thursday July 04, 2024 @03:46AM (#40873123)
I have a (completely overkill) Ubiquiti Dream Wall that lets me VPN in using WireGuard. I do have a Raspberry Pi that runs (among other stuff) a script to ping a service on hosted server that keeps a dns entry updated in case my IP address changes, although that's rare.

I built the service to keep the dns entry updated myself, so I'm sure it's not as secure as it could be, but it only accepts pings via https and it only works if the body of the POST contains a guid that is mapped to the dns entry I want it to update.