UPDATE (13:40 ET / 2024-07-05): Got the connection working via SMB. Literally the only thing I changed was moving to a credentials file rather than specifying credentials inline, so … I’ll be trying to figure out what mystery affliction prevented the connection before. Leaving this up because there are a bunch of great suggestions for troubleshooting this issue in the comments. Thanks everyone.
ORIGINAL POST:
Currently pulling out my hair. I have a Synology NAS with the tailscale service (everything up to date). I have a NixOS client laptop, everything up to date.
I’m simply (?) trying to connect to a share via tailscale, and I have not managed to find anything that works. I’ve been using NFS, but I’m fine with SMB … or carrier pigeons at this point.
Does anyone know of a step by step, detailed, current tutorial to accomplish accessing a Synology share via tailscale on a linux device? I would not have thought this would be challenging!
What’s wrong with SMB?
Nothing, but I’m experiencing substantially the same behavior attempting SMB.
Did this ever work?
Does pinging by IP address work?
Go to your settings look at security, is the firewall enabled? Tried disabling it for now
In settings and security is autoblock enabled? Try disabling it for now
https://tailscale.com/kb/1131/synology
Did you follow the DSM-7 task setup? In DSM-7 tail scale cannot allow outbound connections unless you set up the appropriate tunnel permissions.
- I have tried with firewall enabled and disabled (and added the rule for the enabled firewall)
- I will check autoblock. That’s one thing I haven’t checked.
- I followed the DSM-7 task setup.
All fantastic suggestions, btw, but my hair-pulling is coming from none of them working (other than autoblock). :)
Does ping work? Have you validated tailscale?
Check the iptables on the device.
If that doesn’t work it’s time to do tcpdumps on the different internal interfaces of the Nas and see where it stops
Removed by mod
- Declaring the NFS mount in my NixOS configuration; also tried manually mounting via
sudo mount -o nfs $TAILSCALEHOSTNAME:/$MOUNT /mnt/$MOUNT (with some options like no auto, but I’m doing this from memory)
- I’ll try but I have some idea that it won’t respond to ping
- I will try in a moment
- yes, on the local network (192.168.x.x) — and for the record I allowed access to the NFS share via the tailscale subnet
The error I am receiving differs depending on whether I’m connecting via CLI or, say, Nautilus but I’ll have to collect the errors when I’m back at the laptop.
Removed by mod
It’s the same error regardless of whether I connect by tailscale IP (100.x.x.x) or the tailscale hostname, and it strongly suggests an issue on the Synology, but everything looks correct on the NAS (but I am by NO MEANS an expert):
mount.nfs: access denied by server while mounting $IP:/volume1/$mount
I don’t use synology but it kind of seems like the synology has an allowlist for subnets that can connect to it. Do you know what service is hosting the file share?
The allowlist for NFS allows the tailscale subnet and the local LAN subnet.
Does tailscale have a consistent subnet? Can you connect to the NFS share over the LAN net?
Removed by mod
I have an off-site Synology that is also killing me trying to get it connected. Did you realize they don’t allow ssh on their VPN service?
I believe the Synology tailscale client doesn’t support tailscale SSH, but I was able to “classic SSH” into the NAS (remotely, via Tailscale) with no problem.