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

    OpenVPN is setup and connecting but no access to local shares.

    Scheduled Pinned Locked Moved OpenVPN
    8 Posts 2 Posters 718 Views
    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.
    • S
      Stellir
      last edited by Stellir

      I am curious what is necessary to allow me to access the Local shares now that I am connected to the VPN. I can only ping the router 192.168.3.1 but no clients and therefore no access to shares.

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @Stellir
        last edited by

        @stellir
        Is the OpenVPN server the default gateway in the remote network?

        Basically you need the route to the remote network and a firewall rule on the OpenVPN tab allowing the access.
        If 192.168.3.1 is the LAN IP of the router, the route form the client should work.

        Ensure that the destination device allows the access.

        S 1 Reply Last reply Reply Quote 0
        • S
          Stellir @viragomann
          last edited by

          On the remote site I have a Netgate sg-5100 (192.168.3.1) with OpenVPN running. I used the wizard to create the vpn and download the clients. There was an option to allow it to create the firewall rule for the OpenVPN. Must I manually add another rule? How does the tunnel generated IP 192.168.4.0/24 get to talk with the local network of 192.168.3.x I can only ping the gateway and no clients.

          V 1 Reply Last reply Reply Quote 0
          • V
            viragomann @Stellir
            last edited by

            @stellir said in OpenVPN is setup and connecting but no access to local shares.:

            On the remote site I have a Netgate sg-5100 (192.168.3.1) with OpenVPN running.

            And is it the default gateway now? Or is it just a LAN device?

            S 1 Reply Last reply Reply Quote 0
            • S
              Stellir @viragomann
              last edited by

              @viragomann
              I assume so since after I connect to the VPN I check my public IP address it is the same IP address as the VPN public IP address. I can ping the gateway 192.168.3.1 but not the computer on the LAN that is sharing files.
              Ok I disabled the firewall on the Windows 10 computer hosting the files and I am now able to access the files. How do I properly allow access through the firewall as I certainly don't want to totally disable the firewall.

              V 1 Reply Last reply Reply Quote 0
              • V
                viragomann @Stellir
                last edited by

                @stellir
                This depends on your network usage and VPN purposes.

                If this is your private home network and only yourself or very trusted users get VPN access, you can do masquerading by adding an outbound NAT rule to translate the VPN sources into the LAN interface IP. So the Windows firewall want block them anymore.

                But better solution is to add a pass rule to the Windows firewall for the VPN tunnel network.

                S 1 Reply Last reply Reply Quote 0
                • S
                  Stellir @viragomann
                  last edited by

                  @viragomann said in OpenVPN is setup and connecting but no access to local shares.:

                  add a pass rule to the Windows firewall for the VPN tunnel network

                  Any direction to accomplish this would be appreciated. The wizard created a Pass rule for the OpenVPN on port 1194 so what else is needed.

                  V 1 Reply Last reply Reply Quote 0
                  • V
                    viragomann @Stellir
                    last edited by

                    @stellir said in OpenVPN is setup and connecting but no access to local shares.:

                    @viragomann said in OpenVPN is setup and connecting but no access to local shares.:

                    add a pass rule to the Windows firewall for the VPN tunnel network

                    Any direction to accomplish this would be appreciated. The wizard created a Pass rule for the OpenVPN on port 1194 so what else is needed.

                    You need to do the on your Windows 10. This one:

                    Ok I disabled the firewall on the Windows 10 computer hosting the files

                    That's not the topic of this forum and I'm not sitting on a Windows currently. But there is an option to add firewall rules to it, something like "firewall advanced settings". Add an allow rule for the source of the VPN tunnel network, maybe you want restrict ports or simply allow any.

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