• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Cannot access Windows share via OpenVPN

OpenVPN
openvpn windows share
3
5
1.1k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 3
    3lmar
    last edited by Jul 9, 2021, 11:11 AM

    Hi!

    I'm trying to create a small business network with a windows 10 computer (LAN 192.168.111.2) acting as a kind of server and two clients accessing the pc via OpenVPN.
    The OpenVPN-Server runs on an SG-1100/pfsense+. (LAN 192.168.111.1, OpenVPN 10.101.111.1).
    In the OpenVPN server configuration I entered 192.168.111.0 as local network, which I suppose is equivalent to a "push route" directive.

    I can reach the windows pc from OpenVPN, I can ping it's IP and can connect to it via remote desktop.

    Nevertheless I cannot access a shared folder.
    I read a lot about DNS problems, but I don't need the domain name, I would be fine with the IP address.

    I tried with deactivated personal (windows) firewalls on both the OpenVPN client and the LAN pc, but no luck either. net use complains it doesn't find the network resource.

    I think it may have to do with routing on the pfsense, but I am not sure. Interestingly I cannot ping the OpenVPN client (10.101.111.2) from the LAN pc (192.168.111.2).

    What's wrong? Can someone give me a hint?

    B J 3 3 Replies Last reply Jul 9, 2021, 12:09 PM Reply Quote 0
    • B
      bingo600 @3lmar
      last edited by bingo600 Jul 9, 2021, 12:13 PM Jul 9, 2021, 12:09 PM

      @3lmar

      If you are sure it's not a firewall permission problem Windows or pfSense.
      Or as you mention a ping/routing problem

      /Bingo

      The below might not fit your problem, but ...

      An often missed (tested last) thing is:

      Could be OpenVPN tunnel MTU problems
      I had that on a Citrix system where i couldn't start a VDI

      Have a look at
      https://forum.netgate.com/topic/148161/how-to-change-mtu-mssfix-values-for-openvpn-in-pfsense

      Remember the "new" settings has to match in both ends ... Server and Client

      If you find my answer useful - Please give the post a 👍 - "thumbs up"

      pfSense+ 23.05.1 (ZFS)

      QOTOM-Q355G4 Quad Lan.
      CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
      LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

      1 Reply Last reply Reply Quote 1
      • J
        JKnott @3lmar
        last edited by Jul 9, 2021, 12:34 PM

        @3lmar said in Cannot access Windows share via OpenVPN:

        Nevertheless I cannot access a shared folder.

        Do you mean you can't see the folders when you browse for them? Or you can't access them at all? The browsing relies on multicasts, which are not passed through a router. You'll have to create a connection, which will then work.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        3 1 Reply Last reply Jul 9, 2021, 12:50 PM Reply Quote 1
        • 3
          3lmar @JKnott
          last edited by Jul 9, 2021, 12:50 PM

          @jknott I cannot access it at all (by IP). Browsing would be nice, but not necessary.

          1 Reply Last reply Reply Quote 0
          • 3
            3lmar @3lmar
            last edited by Jul 12, 2021, 7:51 PM

            @3lmar It turned out it was a totally different problem.
            The solution is somehow related to pfsense, because I would not have found it without pfsense's package capture.
            My windows 10 notebook on the OpenVPN was trying to connect via port 80, which seemed strange. I learned it did that, because the share wasn't on the same subnet.
            The solution was to disable NetBIOS over TCP/IP: https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/direct-hosting-of-smb-over-tcpip

            Sorry for having disturbed you.
            Maybe this helps anybody else, who like me wouldn't expect a problem with windows pcs connecting to windows pcs.
            I should have stayed with linux.

            1 Reply Last reply Reply Quote 0
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.