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

Cannot get to shared folders

Scheduled Pinned Locked Moved IPsec
29 Posts 3 Posters 2.5k 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
    SteveITS Galactic Empire @dalicollins
    last edited by Feb 9, 2023, 4:52 PM

    @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 Feb 9, 2023, 4:53 PM

      @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 Feb 9, 2023, 5:00 PM Reply Quote 0
      • D
        dalicollins @viragomann
        last edited by dalicollins Feb 9, 2023, 5:04 PM Feb 9, 2023, 5:00 PM

        @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 Feb 9, 2023, 5:13 PM Reply Quote 0
        • V
          viragomann @dalicollins
          last edited by viragomann Feb 9, 2023, 5:24 PM Feb 9, 2023, 5:13 PM

          @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 Feb 9, 2023, 5:20 PM Reply Quote 0
          • S
            SteveITS Galactic Empire @dalicollins
            last edited by Feb 9, 2023, 5:19 PM

            @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 Feb 9, 2023, 5:25 PM Reply Quote 0
            • D
              dalicollins @viragomann
              last edited by dalicollins Feb 9, 2023, 5:23 PM Feb 9, 2023, 5:20 PM

              @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 Feb 9, 2023, 5:31 PM Reply Quote 0
              • V
                viragomann @SteveITS
                last edited by Feb 9, 2023, 5:25 PM

                @steveits
                Nice. Need to double each backslash.

                D 1 Reply Last reply Feb 9, 2023, 5:26 PM Reply Quote 0
                • D
                  dalicollins @viragomann
                  last edited by Feb 9, 2023, 5:26 PM

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

                  V 1 Reply Last reply Feb 9, 2023, 5:28 PM Reply Quote 0
                  • V
                    viragomann @dalicollins
                    last edited by Feb 9, 2023, 5:28 PM

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

                    D 1 Reply Last reply Feb 9, 2023, 5:32 PM Reply Quote 0
                    • V
                      viragomann @dalicollins
                      last edited by Feb 9, 2023, 5:31 PM

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

                      D 1 Reply Last reply Feb 9, 2023, 5:35 PM Reply Quote 0
                      • D
                        dalicollins @viragomann
                        last edited by Feb 9, 2023, 5:32 PM

                        @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 Feb 9, 2023, 5:34 PM Reply Quote 0
                        • V
                          viragomann @dalicollins
                          last edited by Feb 9, 2023, 5:34 PM

                          @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 Feb 9, 2023, 5:37 PM Feb 9, 2023, 5:35 PM

                            @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 Feb 9, 2023, 5:40 PM Reply Quote 0
                            • S
                              SteveITS Galactic Empire @dalicollins
                              last edited by Feb 9, 2023, 5:36 PM

                              @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 Feb 9, 2023, 5:40 PM

                                @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 Feb 9, 2023, 5:43 PM Reply Quote 0
                                • D
                                  dalicollins @viragomann
                                  last edited by dalicollins Feb 9, 2023, 5:47 PM Feb 9, 2023, 5:43 PM

                                  @viragomann
                                  On the server
                                  IPv4 Route Table

                                  Active Routes:
                                  Network Destination Netmask Gateway Interface Metric
                                  0.0.0.0 0.0.0.0 192.168.100.1 192.168.100.26 1255
                                  0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.100 266
                                  10.10.10.100 255.255.255.255 On-link 10.10.10.100 315
                                  10.10.10.102 255.255.255.255 10.10.10.102 10.10.10.100 60
                                  10.10.10.105 255.255.255.255 10.10.10.105 10.10.10.100 60
                                  10.10.10.107 255.255.255.255 10.10.10.107 10.10.10.100 60
                                  10.10.10.109 255.255.255.255 10.10.10.109 10.10.10.100 60
                                  127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
                                  127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
                                  127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
                                  192.168.1.0 255.255.255.0 On-link 192.168.1.100 266
                                  192.168.1.100 255.255.255.255 On-link 192.168.1.100 266
                                  192.168.1.101 255.255.255.255 On-link 192.168.1.100 266
                                  192.168.1.255 255.255.255.255 On-link 192.168.1.100 266
                                  192.168.100.0 255.255.255.0 On-link 192.168.100.26 1255
                                  192.168.100.26 255.255.255.255 On-link 192.168.100.26 1255
                                  192.168.100.255 255.255.255.255 On-link 192.168.100.26 1255
                                  224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
                                  224.0.0.0 240.0.0.0 On-link 192.168.100.26 1255
                                  224.0.0.0 240.0.0.0 On-link 192.168.1.100 266
                                  224.0.0.0 240.0.0.0 On-link 10.10.10.100 315
                                  255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
                                  255.255.255.255 255.255.255.255 On-link 192.168.100.26 1255
                                  255.255.255.255 255.255.255.255 On-link 192.168.1.100 266
                                  255.255.255.255 255.255.255.255 On-link 10.10.10.100 315

                                  Persistent Routes:
                                  Network Address Netmask Gateway Address Metric
                                  0.0.0.0 0.0.0.0 192.168.1.1 Default
                                  0.0.0.0 0.0.0.0 26.0.0.1 9256
                                  0.0.0.0 0.0.0.0 192.168.100.1 Default
                                  0.0.0.0 0.0.0.0 192.168.1.1 Default

                                  192.168.1.1 is the IP going to the other pfsense firewall.
                                  10.10.10.100 is the servers internal Windows VPN which is what I want to switch the uses from.

                                  V 1 Reply Last reply Feb 9, 2023, 5:46 PM Reply Quote 0
                                  • V
                                    viragomann @dalicollins
                                    last edited by viragomann Feb 9, 2023, 5:50 PM Feb 9, 2023, 5:46 PM

                                    @dalicollins said in Cannot get to shared folders:

                                    192.168.1.1 is the IP going to the other pfsense firewall.

                                    So access from the VPN cannot work.
                                    This would be worth to mention at first of all.

                                    To get access you have to either add a static route to the server for the VPN tunnel pool and point it to the IPSec pfSense or you can masquerade the outgoing traffic on pfSense.

                                    However, if the other router is a pfSense as well, I'm wondering why you fire up an additional to run a VPN on it.

                                    D 2 Replies Last reply Feb 9, 2023, 5:51 PM Reply Quote 0
                                    • D
                                      dalicollins @viragomann
                                      last edited by dalicollins Feb 9, 2023, 5:55 PM Feb 9, 2023, 5:51 PM

                                      @viragomann
                                      Not sure how to do that. I also tried changing the IPsec rule to an IP of a local computer with only one connection and I can ping that IP. So how do I masquerade the outgoing traffic?

                                      V 1 Reply Last reply Feb 9, 2023, 5:59 PM Reply Quote 0
                                      • V
                                        viragomann @dalicollins
                                        last edited by Feb 9, 2023, 5:59 PM

                                        @dalicollins
                                        Masquerading is only recommended if you know, what it does and if you have restrict firewall rules. It's a workaround for different issues.
                                        But since this VPN is obviously for your own purposes only, you can do this to get a step beyond.

                                        It's done by Firewall > NAT > Outbound

                                        Select hybride mode and save this first.
                                        Add a new rule:
                                        interface: LAN
                                        source: IPSec tunnel pool (or maybe any, since there is no other passing this pfSense)
                                        destination: any
                                        translation: interface address

                                        Should work then.

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          dalicollins @viragomann
                                          last edited by Feb 9, 2023, 5:59 PM

                                          @viragomann
                                          I use two pfsense firewalls because I have I two Internet WAN's. One static and the other dynamic. They are totally isolated from one another and come from different ISP's. Each uses it's own subnet on separate NIC's

                                          V S 2 Replies Last reply Feb 9, 2023, 6:01 PM Reply Quote 0
                                          25 out of 29
                                          • First post
                                            25/29
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received