F5F Stay Refreshed Power Users Networks Accessing NAS remotely as if connected to a home network.

Accessing NAS remotely as if connected to a home network.

Accessing NAS remotely as if connected to a home network.

P
Pigzerd
Member
56
08-25-2021, 04:04 PM
#1
Right. I'm not available much and want to be able to reach my NAS remotely just like from my home network. I have six shares set up as virtual drives that both my Windows 10 and (you know) Windows 11 machines can connect to via Ethernet. I also have Wi-Fi at home, so my wife's iPad and my fire tablet can join it too.

I can log into the NAS through Western Digital's OS5.MyCloud, but I find it hard to view files without downloading them first and opening them, rather than just double-clicking from home.

Could someone suggest a VPN solution that would let me access the NAS files and folders remotely as easily as I do at home? And what would be the setup process?

Thank you.
P
Pigzerd
08-25-2021, 04:04 PM #1

Right. I'm not available much and want to be able to reach my NAS remotely just like from my home network. I have six shares set up as virtual drives that both my Windows 10 and (you know) Windows 11 machines can connect to via Ethernet. I also have Wi-Fi at home, so my wife's iPad and my fire tablet can join it too.

I can log into the NAS through Western Digital's OS5.MyCloud, but I find it hard to view files without downloading them first and opening them, rather than just double-clicking from home.

Could someone suggest a VPN solution that would let me access the NAS files and folders remotely as easily as I do at home? And what would be the setup process?

Thank you.

G
GreenDiamond9
Junior Member
16
08-29-2021, 07:54 PM
#2
Why would we be surprised that Windows 11 accesses your NAS shares? Aside from defaulting to requiring a username/password and SMB signing, it works the same as Windows 10.
Yes, you would want a VPN or something similar running at your home, but the type and the way you set it up will vary. Does your NAS have the ability to run applications/services that you install, or is it a very cut-down device that only runs what was pre-installed? What model is it? What type of router do you use?
https://tailscale.com/kb/1307/nas
(You can install it on devices other than what are listed there.)
A service like TailScale is handy because it easily handles dynamic IP addresses, which most consumer Internet services uses. So if your WAN IP address changes, your home device will just update TailScale's servers. Then your remote device checks with TailScale to find out the current connection properties. You don't even need to do any port forwarding in your router, as TailScale can facilitate connections through NAT. Or if your router supports adding applications, you may be able to run TailScale on it directly, although I don't think there'd be any big benefit, other than not putting the additional load on the NAS, but it may be more powerful than your router.
Or you can run a VPN service on your home router, which some have built-in or you could install. That avoids any outside services or costs being involved, but you will have to work with the possibility of your IP address changing. You can just manually input the new IP as needed (maybe calling someone at home to get it or using something like TeamViewer to remote into a home PC to find it, or by using a dynamic DNS service). You could also set up a small device like a Raspberry Pi or a cheap mini-PC to act as the VPN server or TailScale server.
Once connected, your shares will just work like usual, as the VPN/TailScale configuration should automatically include your LAN subnet to be routed over the connection. (If it's running on your router, you might even be able to access other PCs and network printers.) You will probably want to change your LAN subnet from the default to something random like 172.16.173.x (or any other unusual RFC1918 subnet), so that if you're at a remote location that happens to use the same default like 192.168.1.x there won't be any conflicts.
Of course there's also the option of just using something like Google Drive, Proton Drive, etc. to have the folders that you want to access synced to/from the cloud, so your PC can access them there when you're out. There are tools that will let the NAS itself do the syncing, or you could have a PC on the network do it using a tool that lets a network drive be synced to one of the services. This would cache the file locally to your machine when you open it, and upload changes that would then be synced to the NAS. This could be more reliable and faster since it's an asynchronous thing, rather than having the files continuously opened over the VPN using SMB. (I imagine opening some files this way would also be faster since the entire file would be copied to the cache first, rather than Windows trying to read the file via the slow VPN using normal file opening techniques.)
G
GreenDiamond9
08-29-2021, 07:54 PM #2

Why would we be surprised that Windows 11 accesses your NAS shares? Aside from defaulting to requiring a username/password and SMB signing, it works the same as Windows 10.
Yes, you would want a VPN or something similar running at your home, but the type and the way you set it up will vary. Does your NAS have the ability to run applications/services that you install, or is it a very cut-down device that only runs what was pre-installed? What model is it? What type of router do you use?
https://tailscale.com/kb/1307/nas
(You can install it on devices other than what are listed there.)
A service like TailScale is handy because it easily handles dynamic IP addresses, which most consumer Internet services uses. So if your WAN IP address changes, your home device will just update TailScale's servers. Then your remote device checks with TailScale to find out the current connection properties. You don't even need to do any port forwarding in your router, as TailScale can facilitate connections through NAT. Or if your router supports adding applications, you may be able to run TailScale on it directly, although I don't think there'd be any big benefit, other than not putting the additional load on the NAS, but it may be more powerful than your router.
Or you can run a VPN service on your home router, which some have built-in or you could install. That avoids any outside services or costs being involved, but you will have to work with the possibility of your IP address changing. You can just manually input the new IP as needed (maybe calling someone at home to get it or using something like TeamViewer to remote into a home PC to find it, or by using a dynamic DNS service). You could also set up a small device like a Raspberry Pi or a cheap mini-PC to act as the VPN server or TailScale server.
Once connected, your shares will just work like usual, as the VPN/TailScale configuration should automatically include your LAN subnet to be routed over the connection. (If it's running on your router, you might even be able to access other PCs and network printers.) You will probably want to change your LAN subnet from the default to something random like 172.16.173.x (or any other unusual RFC1918 subnet), so that if you're at a remote location that happens to use the same default like 192.168.1.x there won't be any conflicts.
Of course there's also the option of just using something like Google Drive, Proton Drive, etc. to have the folders that you want to access synced to/from the cloud, so your PC can access them there when you're out. There are tools that will let the NAS itself do the syncing, or you could have a PC on the network do it using a tool that lets a network drive be synced to one of the services. This would cache the file locally to your machine when you open it, and upload changes that would then be synced to the NAS. This could be more reliable and faster since it's an asynchronous thing, rather than having the files continuously opened over the VPN using SMB. (I imagine opening some files this way would also be faster since the entire file would be copied to the cache first, rather than Windows trying to read the file via the slow VPN using normal file opening techniques.)

K
kynxav
Member
121
08-29-2021, 10:55 PM
#3
Even though the post suggests using tailscale, you might not need its extra features.
If your router supports a VPN server and you have a public IP on the wan port, it’s easy to configure.
Openvpn or WireGuard are common choices for most setups.
The main benefit of tailscale comes in when you lack a public IP.
It’s important to note that Tailscale can be vulnerable to man-in-the-middle attacks.
With a properly configured firewall or NAT, these risks can be mitigated.
Most consumer routers are simple enough and work well for most users.
Avoid overcomplicating things unless necessary.
VPN can be tricky if you’re new to it—start with small steps if possible.
K
kynxav
08-29-2021, 10:55 PM #3

Even though the post suggests using tailscale, you might not need its extra features.
If your router supports a VPN server and you have a public IP on the wan port, it’s easy to configure.
Openvpn or WireGuard are common choices for most setups.
The main benefit of tailscale comes in when you lack a public IP.
It’s important to note that Tailscale can be vulnerable to man-in-the-middle attacks.
With a properly configured firewall or NAT, these risks can be mitigated.
Most consumer routers are simple enough and work well for most users.
Avoid overcomplicating things unless necessary.
VPN can be tricky if you’re new to it—start with small steps if possible.

P
Pikachulover9
Member
87
08-30-2021, 10:08 AM
#4
There are many VPN options (OpenVPN, Wireguard, Tailscale,Netbird, ZeroTier or Softether) the problem is to make them install and run on your devices. Either on your router, NAS or PC that can be on 24/7. apparently not all platforms are supported.
What's your exact router brand/model ? WD OS5 does not support Tailscale natively and ZeroTier only support CLI (command line) but no GUI on OS5.
https://pkgs.tailscale.com/stable/
Western Digital | ZeroTier Documentation
How to install ZeroTier on your Western Digital NAS
docs.zerotier.com
In theory once you setup the VPN, everything looks like local, but you probably won't feel it's local, the usual problem is the upload speed of both ends - home and remote site.
Let's assume you have gigabits connection at home to the NAS here and your upload speed at home is 30Mbps and remote site upload speed is 50Mbps, then the max speed you get will be 30Mbps.
The best way in my opinion is have a 24/7 PC that's connected to the NAS locally and you remote desktop into the PC. This way your PC at home will always have gigabits connection to the NAS, when you remote control your PC the data send over the internet is screen only, not the data/file that can only be transmitted at 30Mbps. You also don't have to worry about data corruption if the internet is cut somehow when you are editing files.
Remote desktop options: Windows RDP, Anydesk, Rustdesk or VNC.
For VPN I personally prefer ZeroTier for its simplicity. No public ip and no port forwarding required.
Tons of VPN tutorials on Youtube.
P
Pikachulover9
08-30-2021, 10:08 AM #4

There are many VPN options (OpenVPN, Wireguard, Tailscale,Netbird, ZeroTier or Softether) the problem is to make them install and run on your devices. Either on your router, NAS or PC that can be on 24/7. apparently not all platforms are supported.
What's your exact router brand/model ? WD OS5 does not support Tailscale natively and ZeroTier only support CLI (command line) but no GUI on OS5.
https://pkgs.tailscale.com/stable/
Western Digital | ZeroTier Documentation
How to install ZeroTier on your Western Digital NAS
docs.zerotier.com
In theory once you setup the VPN, everything looks like local, but you probably won't feel it's local, the usual problem is the upload speed of both ends - home and remote site.
Let's assume you have gigabits connection at home to the NAS here and your upload speed at home is 30Mbps and remote site upload speed is 50Mbps, then the max speed you get will be 30Mbps.
The best way in my opinion is have a 24/7 PC that's connected to the NAS locally and you remote desktop into the PC. This way your PC at home will always have gigabits connection to the NAS, when you remote control your PC the data send over the internet is screen only, not the data/file that can only be transmitted at 30Mbps. You also don't have to worry about data corruption if the internet is cut somehow when you are editing files.
Remote desktop options: Windows RDP, Anydesk, Rustdesk or VNC.
For VPN I personally prefer ZeroTier for its simplicity. No public ip and no port forwarding required.
Tons of VPN tutorials on Youtube.