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

    Having trouble accessing NAS through VPN server

    Scheduled Pinned Locked Moved OpenVPN
    29 Posts 5 Posters 611 Views 4 Watching
    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.
    • A Offline
      azdeltawye @Gertjan
      last edited by azdeltawye

      @Gertjan
      I hear what you're saying but I don't think that is correct in this situation. I thought PfSense automatically adds VLAN subnets to its routing table when the VLANs are created. And since I have the 'allow all' rule on my VPN server interface, I can ping and access all my VLAN gateways, including the 200 VLAN gateway which is where the NAS lives, when I tunnel into my VPN server.

      Anecdotally, I have a security camera NVR on my 175 VLAN (192.168.175.0/24) which I have no problem accessing when I tunnel into my VPN server from a remote location. No special entries in the routing table to allow this connection, it just works.

      And like I mentioned before, this did actually work some years ago. I was able to access the NAS with the FE application from my iOS device over the VPN. Something changed, other than my pfSense configuration that is preventing access now...

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @azdeltawye
        last edited by

        @azdeltawye said in Having trouble accessing NAS through VPN server:

        I thought PfSense automatically adds VLAN subnets

        Where did VLANs come from ?
        So you do have a 192.168.200.1/24 interface ? (LAN, or VLAN doesn't matter, as long as it is set up correctly).

        VLAN need a setup on the pfSense side, and on the smart 'VLAN capable side' switch side.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          azdeltawye @Gertjan
          last edited by

          @Gertjan said in Having trouble accessing NAS through VPN server:

          Where did VLANs come from ?

          huh??
          I configured them when I designed the network years ago... You can see the different interfaces of my network from the screenshot on post #16. Here is a summary of how the network segments are defined:

          8e26d849-2d6d-405f-9e9b-a3257f1a5682-image.png

          Yes, all the layer 2 switches and APs are capable of VLAN tagging...

          So when I log into my VPN server with my iPhone from a remote location, I am able to ping random devices on every VLAN listed above in my network. However, I cannot ping the Synology NAS (192.168.200.4). But, I am able to ping my backup 'NAS' (192.168.200.5). My backup 'NAS' is just an old Asus RT-AC86 router with a Samba SSD plugged into the USB port. I cannot access either NAS from the File Explorer app on my iphone.

          Now when I am at home and my iPhone is on the 200 VLAN network, I can ping and access both NAS devices with the File Explorer app.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG Offline
            Gertjan @azdeltawye
            last edited by

            @azdeltawye said in Having trouble accessing NAS through VPN server:

            huh??

            Don't worry. I thought you had a single pfSense LAN, 192.168.125.0/24 and a NAS using 192.168.200.4 on that LAN.
            That will fail of course.
            But solved now : you have more then one LAN ^^ Your NAS lives on the LAN called 'HOME' :

            481daab1-1e43-419d-9e7e-99026aea453d-image.png

            Check that :

            99b220ee-00af-42ab-b2bb-7db05055f0e4-image.png

            has been set to /24.

            Check that your OpenVPN interface firewall says :

            9752f332-864b-4fe2-978d-4be4171e900b-image.png

            Btw : You've two of them : 10.0.20.0/24 and 10.0.10.0/24.

            About :

            1aacbf53-f23b-47aa-829b-1c6cbb5d62f6-image.png

            I would presume that your iPad would have a 10.0.10.0/24 or 10.0.20.0/24 IP when connected to the VPN, not this 10.208.190.248 IP (where did that came from ?)

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            A 1 Reply Last reply Reply Quote 0
            • A Offline
              azdeltawye @Gertjan
              last edited by

              @Gertjan
              Actually, the NAS's live on the USER .200 network.
              7a8e6a4a-bd88-4746-b972-590669a71219-image.png
              Yes, it is a /24.

              dc59d4ee-7b17-45d3-adad-6b33724c9f4d-image.png
              4f971d77-9f42-4fa1-8a2d-ad35737c6473-image.png
              Yeah, I have the OpenVPN server subnets rule to allow all traffic.

              What advanced settings do you have in your VPN interface rule? I see a gear symbol next to the pass check mark. Is that something that may help?

              That private address assigned to my iPhone (10.208.190.248) is puzzling. It appears to be a Verizon thing. If I go to Starbucks and jump on their WiFi, or work, it shows the same address.. Just for kicks, I put that IP in the VPN interface rule shown above but that had no effect. My iPad does not have any of that since it has no SIM card.

              GertjanG 1 Reply Last reply Reply Quote 0
              • GertjanG Offline
                Gertjan @azdeltawye
                last edited by

                @azdeltawye said in Having trouble accessing NAS through VPN server:

                What advanced settings do you have in your VPN interface rule?

                Just the "Allow IP options" set :

                725c4fc0-313e-450b-86c5-e3df884e2000-image.png

                Probably not needed.

                Btw : my OpenVPN interface firewall rule set is empty :

                8104d901-73f3-4a8c-98d8-9e18c0621c08-image.png

                as I've created an "VPNS" for my OpenVPN server :

                c402e9c4-c11c-4bac-9f85-c0a7070d4b20-image.png

                so it's has it's own dedicated interface with rule set :

                9ba3fc32-ded8-4746-82c6-e93e22a2ef8c-image.png

                This is also most probably a way of doing things, and not important.

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • the otherT Offline
                  the other
                  last edited by

                  hey there,
                  so:
                  everything is reachable via VPN except your syno NAS? Correct?
                  I'd say: are you sure you disabled your NAS firewall? please check again.

                  Just for the fun of it:
                  set a allow rule on your openVPN Interface to ecplictly allow (for test, change later) ANY to NAS IP for TCP/UDP. (I know, your rule should include that...as mentioned: for the fun of it).

                  Does your iphone get an IP from the right defined range? Do you have random MAC active?

                  the other

                  pure amateur home user, no business or professional background
                  please excuse poor english skills and typpoz :)

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    azdeltawye @the other
                    last edited by azdeltawye

                    @the-other
                    Yes the Synology firewall is disabled.
                    ff8411bd-3844-41d3-b3f9-5b34738d4a7b-image.png
                    Additionally, I have the VPN subnets listed as 'trusted proxies'
                    a1e8e4f8-2821-4b7b-9a40-4fc709d5d1f4-image.png

                    The Asus 'NAS' does not have the firewall enabled since it is in AP mode...

                    I also verified that the iPhone and iPad get IPs in the expected VPN subnets, I checked for both VPN servers.

                    Here is something in the Synology that may need tweaking. This is the General>Advanced Settings tab:
                    67eee47f-e048-4d15-89fe-ed5f2ab1283c-image.png

                    the otherT 1 Reply Last reply Reply Quote 0
                    • the otherT Offline
                      the other @azdeltawye
                      last edited by

                      @azdeltawye well, I have some stuff set differently:

                      • your 2nd screenshot (advanced settings) are the very same here (plus activated "first use IPv4...").
                      • I have nothing under "trusted proxies"

                      With firewall (on NAS) set I have no trouble accessing my NAS via openVPN.

                      Have you tried to set an (for the fun of it) rule like
                      allow any to NAS IP? Yeah, I know...your rule any any allow should cover that...
                      I still think that something NAS related is the problem, since you can access everything else via vpn just fine...
                      Sorry for asking again: can you ping your NAS IP thru your VPN tunnel?

                      the other

                      pure amateur home user, no business or professional background
                      please excuse poor english skills and typpoz :)

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        azdeltawye @the other
                        last edited by azdeltawye

                        @the-other
                        Ok, I made a specific rule in the OpenVPN interface to allow any to both NAS servers.
                        2cd0716f-d4f0-4e63-94e8-4fc93788fd6d-image.png

                        Here you can see me connecting to the VPN server with my iPhone and attempting to ping both the NAS servers. The traffic passes through the firewall but the ping fails to the Synology (200.4).
                        eb97e248-fbd4-43cf-977c-31d87df234ce-image.png
                        efcea745-54b9-4460-a44a-e2fffc8c5644-image.png
                        I can, however, successfully ping the backup NAS (200.5) but I cannot connect to that one either with the File Explorer app.

                        BTW, the backup NAS is an old Asus AC-RT86 router in AP mode with WiFi disabled and a SAMBA SSD in the USB port.

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