Windows 10: How to access shared drives when VPN'd into network? OpenVPN

Discus and support How to access shared drives when VPN'd into network? OpenVPN in Windows 10 Network and Sharing to solve the problem; Hi all, I've recently purchased a Linksys WRT-3200 ACM router and have turned on the pre-configured OpenVPN Server on the Linksys Smart-WiFi firmware.... Discussion in 'Windows 10 Network and Sharing' started by TheLangleySaxon, Nov 24, 2019.

  1. How to access shared drives when VPN'd into network? OpenVPN


    Hi all,

    I've recently purchased a Linksys WRT-3200 ACM router and have turned on the pre-configured OpenVPN Server on the Linksys Smart-WiFi firmware. I have create a user profile and certificate, which I then shared with a client machine (Windows 10) and successfully connected to the VPN via OpenVPN Connect. I am able to ping devices on the network successfully.

    I can not, however, seem to access a shared drive hosted on a Windows 10 Pro workstation I cannot even see the computer on the network. I am able to access the computer / drive when on the same LAN without the VPN.

    I believe my OpenVPN server may be placing connections on a different subnet as my LAN IPs are 192.168.1.XXX and my IP address when connected to the VPN is 172.19.13.XXX, as defined on in the IP Address Range setup on the OpenVPN Server tab of my router. I cannot seem to change this option though, and I'm not sure if this even matters. Does anyone have any ideas? This is my first time setting up a VPN... Thanks in advance!


    How to access shared drives when VPN'd into network? OpenVPN [​IMG]

    :)
     
    TheLangleySaxon, Nov 24, 2019
    #1
  2. swec Win User

    OpenVPN is public network and access to SMB share doesn't work

    I did more investigation on OpenVPN client in W10 32bit virtual, because it is almost clean default installation of W10. There never been antivirus other than Microsoft Deffender, only several applications which should not affect anything about network.

    I have for testing two OpenVPN servers, let's name them First and Second, both connection works in that level i can ping through VPN to the server and access to other protocols.

    Both OpenVPN servers, and all clients running latest stable version 2.4.6.

    In First VPN SMB still doesn't work.

    In Second VPN SMB works perfectly.

    In First VPN are TCP ports 137, 138, 139, 445 forwarded from VPN to other older machine. But it works on other W10 client through OpenVPN and some local W10 clients, then i was believe it is all configured properly. It runs SAMBA 3.6x.

    In Second is running SAMBA 4.5.x on the server directly, available only in VPN.

    And it is the problem. Older SAMBA is not too old (it is patched) to not be able work with W10, but there was set option for WXP, to be able login- Fortnatelly, WXP are no longer needed in that network, but that option was forgotten in the configuration.

    Anyway...

    Problem was with option "max protocol = nt1", should be "max protocol = smb2", and maybe some others

    Yes, i know it was insecure. But it is very small network, with only few computers, mostly older ones.

    I still blame stupidity of W10, because it should say something like "ERROR, old insecure protocol", not just display generic and universal error message which can occurst in thousand other situations. Diagnose button never help.


    How to access shared drives when VPN'd into network? OpenVPN [​IMG]


    And mark OpenVPN network as public it is weird too. It is totally opposite, We are using VPN's almost always to be private, aren't we?


    How to access shared drives when VPN'd into network? OpenVPN [​IMG]


    How to access shared drives when VPN'd into network? OpenVPN [​IMG]
     
  3. swec Win User
    OpenVPN is public network and access to SMB share doesn't work

    Hello, i still didn't found solution for this.

    I have some Linux servers with latest versions of OpenVPN and some OpenVPN clients. OpenVPN works just fine, access from Linux or Windows 7 clients too. There is no problem. I am very sure Samba, firewall and OpenVPN server are configured correctly.

    Problem is with Windows 10 and i am not sure when it started, maybe after some last update. I don't know.

    Problem is - the network through virtual network adapter "TAP-Windows Adapter V9" is always identified as public and there is no user accessible option how i can configure it as private network.

    I found command for powershell in this thread (Set Network Location to Private or Public in Windows 10 | Windows 10 Tutorials), but it doesn't help permanently and it doesn't enable access to SMB share anyway. I can even reconfigure all unknown networks in secpol.msc as private, which i believe is very insecure behavior, but for testing i tried it. It didn't help either.

    I have for testing two notebooks and one virtual installation (QEMU). On one notebook access to Samba share works just fine, on virtual and second notebook it does't. It is same OpenVPN, same key for notebooks (why not if they are not connected at a same time) and different key for virtual.

    I am using OpenVPN GUI, which is running as W10 service under system priviledges. I have set DNS and route by push parameters in OpenVPN config on server, i have propper server key verification. There is no warning in OpenVPN log.

    When access to the SMB share doesn't work, W10 displays error message "0x80004005" which i beleive means it is blocked by local W10 firewall, because "Network discovery" is disabled for public networks.

    In one case i tried explicitly allow all trafic from and to the IPv4 address of my server in VPN for all protocols. It didn't help either.

    On virtual is no additional firewall/antivirus. On one of notebooks, which does'n work, is installed AVG, but without firewall module.


    Question is
    - how i can override this behavior?
    - how i can tell W10, my OpenVPN network is safe and private?
    - how i can do more diagnostics? Wireshark? What i should investigate?
     
  4. ryley2637 Win User

    How to access shared drives when VPN'd into network? OpenVPN

    Can't Ping VPN Server or Access Shares While Using VPN


    I've been dealing with this issue for hours now and have tried everything I can think of. I have a Windows 10 Home PC that I have an incoming VPN connection on. I can connect to it, but if the firewall is enabled, I can't ping it or access the shares. If I turn the firewall off I CAN ping and access shares. It was working fine yesterday and I don't remember doing anything to cause this. I've tracked it down to being something with my Public networks. When I disable the firewall on public networks (the VPN adapter) I can ping, but once I enable that it stops pinging. I've tried everything listed below but still can't get it to work:


    • Checked port 1723 is open
    • Allowed EVERYTHING with a firewall rule, through it
    • Checked multiple devices on another Wi-Fi network and 3G with a phone
    • Restarted PC; other devices and router
    • I can ping every other device on my network besides the one creating the VPN (which is the one I need)
    • and so many other steps.
    • Made sure file and printer sharing were enabled in network and sharing center

    Is there some other rule that got removed from the firewall I need to re-add? Any help or tips would be appreciated!
     
    ryley2637, Nov 24, 2019
    #4
Thema:

How to access shared drives when VPN'd into network? OpenVPN

Loading...
  1. How to access shared drives when VPN'd into network? OpenVPN - Similar Threads - access shared drives

  2. Difficulty Accessing Shared Network Drive

    in Windows 10 Gaming
    Difficulty Accessing Shared Network Drive: Hi there, I'm having trouble accessing a shared network drive from my work computer. Every time I try to connect, I receive an error message stating that the drive cannot be found. I've double-checked the network settings and ensured that I have the correct permissions. Could...
  3. Accessing a shared Drive on home network

    in Windows 10 Network and Sharing
    Accessing a shared Drive on home network: Hello,I have a PC and Laptop. I use the same exact Windows Credentials using my live.com account to use both computers. They are BOTH set up as Administrators on each respective computer. However, I cannot access a shared drive from one computer or another, even though it is...
  4. Accessing a shared Drive on home network

    in Windows 10 Gaming
    Accessing a shared Drive on home network: Hello,I have a PC and Laptop. I use the same exact Windows Credentials using my live.com account to use both computers. They are BOTH set up as Administrators on each respective computer. However, I cannot access a shared drive from one computer or another, even though it is...
  5. Accessing a shared Drive on home network

    in Windows 10 Software and Apps
    Accessing a shared Drive on home network: Hello,I have a PC and Laptop. I use the same exact Windows Credentials using my live.com account to use both computers. They are BOTH set up as Administrators on each respective computer. However, I cannot access a shared drive from one computer or another, even though it is...
  6. Can't access a shared network drive

    in Windows 10 Network and Sharing
    Can't access a shared network drive: I have a Windows desktop system here to which I need to connect my two Windows laptops. Laptop1 connects fine but laptop2 returns an error to the effect that I need permission to access that system. But obviously I've done everything on the desktop system that needs to be...
  7. Unable to access shared files over OpenVPN

    in Windows 10 Network and Sharing
    Unable to access shared files over OpenVPN: I have an OpenVPN set up on my router and I'm able to connect to it to access my router, switch, NAS, etc via browser on my phone. I'm also able to access shared files from my Windows 10 computer on my phone using a file manager app (Solid Explorer). However, I'm not able to...
  8. OpenVPN is public network and access to SMB share doesn't work

    in Windows 10 Network and Sharing
    OpenVPN is public network and access to SMB share doesn't work: Hello, i still didn't found solution for this. I have some Linux servers with latest versions of OpenVPN and some OpenVPN clients. OpenVPN works just fine, access from Linux or Windows 7 clients too. There is no problem. I am very sure Samba, firewall and OpenVPN server are...
  9. How to connect to Shared Network drive when not on the network?

    in Windows 10 Network and Sharing
    How to connect to Shared Network drive when not on the network?: How do I connect to a shared network drive I have setup on my Windows 2012 R2 standard server at home, from my Windows 10 pro laptop is at work? Do I have to setup a vpn on windows 2012 server and connect to it from my laptop? Someone told me something about doing it that...
  10. Cannot access shared network drive

    in Windows 10 Network and Sharing
    Cannot access shared network drive: On my desktop (AKA S4, currently running Win8.1 x64 pro) I have shared out four of the hard drives with full permissions. I have 5 PCs in my network and all can access the four drives. My sister is visiting and currently accessing my network via cat5 wire. On her PC (running...

Users found this page by searching for:

  1. openvpn smb2