Can't access a NAS device through a VPN connection in a Windows device.

Martí Carrasco Guitart 0 Reputation points
2023-09-03T10:42:08.4266667+00:00

Hello everyone, I have a VPN set through WireGuard on my local network, along with a NAS that works via SMB. When I'm out of the local network and I want to connect to the NAS, I would have to activate the VPN to be able to access the local network and connect to it, but it doesn't work for me on Windows. I have tried it from a Samsung phone and it connects successfully to the NAS, and it also works from a Mac, but on Windows, when I try to connect to the VPN from outside my local network, there are no devices appearing in the “network” tab of the Windows browser. I've tried to disable the Firewall, but it doesn't work either.

It should be noted that with the VPN activated, I can surf the internet perfectly.

What do I have to do so that I can connect to the NAS from Windows?

Windows for business | Windows Client for IT Pros | Networking | Network connectivity and file sharing
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Shujun Chen (Shanghai Wicresoft Co Ltd) 5 Reputation points Microsoft External Staff
    2024-01-04T06:47:50.27+00:00

    Hello Martí Carrasco Guitart,

    Thanks for posting here.

    As per your statement, the whole set is secured and connected through the VPN deployed with WireGuard, while it`s available on your mobile and Mac but not Windows. Free feel to correct if my understanding might be incorrected.

    Due to the NAS may be using CIFS / SMB 1.0 and is disabled by default in Windows 10 for it is less secure than newer versions of SMB.

    You can try the following steps to see if it helps:

    Open Control Panel, click Programs and then find "Turn Windows features on or off" and click it.

    As shown in the picture below, if your SMB1.0/CIFS file share support is not enabled yet, you can try checking it to enable it.

     Image

    Then, restart your computer, and if possible, try to connect / map to the NAS drive again.

    I hope this can help you.

    If you have already tried this, please reply, and let us know and we would be happy to provide some different suggestions!

    Best Regards,

    Shujun


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    1 person found this answer helpful.
    0 comments No comments

  2. Limitless Technology 44,766 Reputation points
    2023-09-05T10:58:02.97+00:00

    Hello there,

    Most common issue I see when trying to access a drive over a VPN is if the drive is set by name instead of IP address and the DNS server is not set up for the VPN addresses. Second most common is that the VPN VLAN does not have access to the VLAN the server\NAS is on.

    Have you tried split tunneling ?

    VPN split tunneling is a feature that enables users to use two different networks for traffic instead of having all the traffic routed through a VPN. Windows has supported this feature for native applications, and VPN split tunneling is also offered for Microsoft 365 applications over VPN split tunneling on Windows. https://learn.microsoft.com/en-us/deployedge/microsoft-edge-vpn-split-tunneling

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–


  3. Shujun Chen (Shanghai Wicresoft Co Ltd) 5 Reputation points Microsoft External Staff
    2024-01-05T01:40:05.8033333+00:00

    Hello,

    Thank you for posting in Q&A forum.

    Here I will provide some troubleshooting steps from Windows aspects:

    1. Check Windows SMB Client configuration:

    Run Get-smbclientconfiguration on Windows machine and get the output.

    1. Try to ping and telnet NAS IP and see if the network connection is working.
    2. Capture network trace by wireshark/network monitor when trying to connect to NAS device and check the traffic flow.

    Hope this answer can help you well.

    Best Regards,

    Shujun


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.