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

    Cannot get to shared folders

    IPsec
    3
    29
    2.4k
    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.
    • D
      dalicollins
      last edited by dalicollins

      I have been fighting with this for 2 days now. I am just not that familiar enough with VPN setups. Using PFsense Plus. Please help.
      The goal is to use a remote Windows VPN Client to get to shared folders on a Windows server in the local subnet on PFsense.
      The server with the shared folders is at 192.168.100.26. I can get to these folders from any other computer on the same subnet.
      I setup an IPsec VPN following the Netgate tutorial. I can connect ok to the VPN on the remote computer, but I do not know how to get to the shared folders.
      So to simplify, I just need to get to these shared folders from a remote computer connecting via a Windows VPN client.

      S 1 Reply Last reply Reply Quote 0
      • S
        SteveITS Galactic Empire @dalicollins
        last edited by SteveITS

        @dalicollins Browse to \\192.168.100.26\share [edited because the forum escapes two slashes]

        Did you set firewall rules?
        https://docs.netgate.com/pfsense/en/latest/recipes/ipsec-mobile-ikev2-eap-mschapv2.html#firewall-rules

        Ensure the file server firewall is not blocking connections from outside its subnet.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote ๐Ÿ‘ helpful posts!

        1 Reply Last reply Reply Quote 0
        • D
          dalicollins
          last edited by

          Thanks for your reply. This forum does not allow me to send pics of my settings, but I did follow the link you posted as best I could. I am sure this is a rules issue.

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

            @dalicollins
            I suspect, that the server blocks access from outside of its subnet.
            You might have to configure its firewall properly to allow this access.

            Allowing access from inside its own subnet, but blocking outside access is the default behavior of the Windows firewall.

            1 Reply Last reply Reply Quote 0
            • D
              dalicollins
              last edited by

              Let me try the images again. Maybe this will work in Chrome.
              VPN5.jpg
              VPN4.jpg
              VPN3.jpg
              VPN2.jpg
              VPN1.jpg

              S V 2 Replies Last reply Reply Quote 0
              • S
                SteveITS Galactic Empire @dalicollins
                last edited by

                @dalicollins The IPsec rule is matching traffic (1 KiB). Did you look at the Windows Server Firewall?

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote ๐Ÿ‘ helpful posts!

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

                  @dalicollins
                  There is no need to pass GRE or ESP packets to the server if you run the IPSec server on pfSense itself.

                  Also the rule on LAN might be useless as I don't think, that your server need to access something included in the VPN port alias.
                  And stating a source port is wrong in most cases.

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    dalicollins @viragomann
                    last edited by dalicollins

                    @viragomann
                    I disabled the ESP, GRE, and LAN rule. I can still connect, but not sure how to get access to the shares on IP 192.168.100.26. On another computer on the same subnet within Pfsense, if I use \192.168.100.26, I have full access to the shared folders. What URL would I use on the remote computer? If I use \10.3.3.1, which is the IP of the remote VPN, It opens, but nothing is there.

                    V S 2 Replies Last reply Reply Quote 0
                    • V
                      viragomann @dalicollins
                      last edited by viragomann

                      @dalicollins
                      There are no WAN rules necessary for accessing the server. You only need to allow IPSec to pfSense WAN address there. But this is obviously working already.

                      For passing traffic from the vpn client to the server the rules on the IPSec tab are relevant.

                      Use \\<IP>\<share> for access it. Same as from local devices.

                      Did you state the local subnet or at least the servers IP in the IPSec settings?

                      Did you already configure the servers firewall? Or disable it for testing.

                      D 1 Reply Last reply Reply Quote 0
                      • S
                        SteveITS Galactic Empire @dalicollins
                        last edited by

                        @dalicollins I see the forum is escaping the double slash but to be clear it is

                        slash-slash-servername_or_ip

                        (as I noted above ;) )

                        If you've allowed IPv4 * you should also be able to ping the server, if you've allowed ICMP from the remote IP on the server's firewall

                        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                        Upvote ๐Ÿ‘ helpful posts!

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

                          @viragomann
                          The Windows server firewall is disabled. You can see in the above pic the IPsec Rules. Is that correct? Using \192.168.100.26 returns 'Windows cannot access \192.168.100.26'
                          Pinging that IP shows 'Request timed out
                          I greatly appreciate the help. Thank you.

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

                            @steveits
                            Nice. Need to double each backslash.

                            D 1 Reply Last reply Reply Quote 0
                            • D
                              dalicollins @viragomann
                              last edited by

                              @viragomann
                              I do double the backslash. The forum removes one in the post

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

                                @dalicollins
                                I meant, I need to write them double to get one.

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

                                  @dalicollins
                                  I forgot to ask one essential question: is pfSense the default gateway on the file server?

                                  D 1 Reply Last reply Reply Quote 0
                                  • D
                                    dalicollins @viragomann
                                    last edited by

                                    @viragomann
                                    lol. I think I am really close. probably just missing a rule. Is the IPsec rule I show above correct?

                                    V S 2 Replies Last reply Reply Quote 0
                                    • V
                                      viragomann @dalicollins
                                      last edited by

                                      @dalicollins said in Cannot get to shared folders:

                                      @viragomann
                                      lol. I think I am really close. probably just missing a rule. Is the IPsec rule I show above correct?

                                      Yes, it allows any protocol to the server. So access to the file share should be allowed.

                                      You can restrict it later if you want.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dalicollins @viragomann
                                        last edited by dalicollins

                                        @viragomann
                                        Yes there is only one default gateway and everything on pfsense uses it. All other functions of pfsense work great. But you brought up an interesting question. The server has two NIC's each connected to a different pfsense firewall. But the other computers on the same firewall can get to the shared folders.

                                        V 1 Reply Last reply Reply Quote 0
                                        • S
                                          SteveITS Galactic Empire @dalicollins
                                          last edited by

                                          @dalicollins Your IPsec rule allows all traffic and is matching packets so should be fine.

                                          [slash-slash-slash-text seems to work fine. It shows in the preview to the right while typing. ]

                                          Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                                          When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                                          Upvote ๐Ÿ‘ helpful posts!

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

                                            @dalicollins said in Cannot get to shared folders:

                                            Yes there is only one default gateway and everything on pfsense uses it.

                                            The question was if the server uses the pfSense running the IPSec server as default gateway.

                                            Run

                                            route print
                                            

                                            on the command line to show the default route.

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