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

    Accessing freenas from different subnet ?

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 6 Posters 16.7k 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.
    • E
      ericab
      last edited by

      oops; i completely misread what you had written;
      i gave you the ports to access your webUI i dont know what i was thinking…

      what protocol are you using to share files ? is the a samba share ? NFS ?

      1 Reply Last reply Reply Quote 0
      • S
        sandman06
        last edited by

        samba

        1 Reply Last reply Reply Quote 0
        • E
          ericab
          last edited by

          so please try allowing the following ports:

          netbios-ns 137/udp # NetBIOS Name Service
          netbios-dgm 138/udp # NetBIOS Datagram Service
          netbios-ssn 139/tcp # NetBIOS Session Service
          microsoft-ds 445/tcp # Microsoft Directory Service

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            You're probably missing a default gateway or have it set wrong on FreeNAS would be my first guess.

            1 Reply Last reply Reply Quote 0
            • S
              sandman06
              last edited by

              i have bridged my interfaces to save the hassle.

              I might try your suggestion in my next snapshot test.

              1 Reply Last reply Reply Quote 0
              • S
                sandman06
                last edited by

                @cmb:

                You're probably missing a default gateway or have it set wrong on FreeNAS would be my first guess.

                ive been told that it wont work because i need a win server apparently.

                samba does not allow shares to different subnets ?

                1 Reply Last reply Reply Quote 0
                • S
                  sandman06
                  last edited by

                  only fix atm i have found is to bridge wlan and lan , therefore allowing nas and wifi on same subnet in order for me to access my share.

                  ideally i dont want to do this though and would like to keep my interfaces separate.

                  1 Reply Last reply Reply Quote 0
                  • GruensFroeschliG
                    GruensFroeschli
                    last edited by

                    I assume you're talking about accessing the share via "my network places".
                    If you access the share via it's IP directly is should work.

                    start –> run --> \IP_of_share

                    We do what we must, because we can.

                    Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                    1 Reply Last reply Reply Quote 0
                    • S
                      sandman06
                      last edited by

                      @GruensFroeschli:

                      I assume you're talking about accessing the share via "my network places".
                      If you access the share via it's IP directly is should work.

                      start –> run --> \IP_of_share

                      yes and also by mapping network drive.

                      I definitely think its a problem with the subnet though.

                      because the nas is on 192.168.1.0/24 and my wifi is on 192.168.2.0/24

                      therefore i assume wifi is not allowed to access the nas.

                      no matter what rules i create it doesn't work.

                      I will try ericab suggestion regarding opening them ports. but for now the bridging seems the only solution to work for me.

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

                        I think samba and windows are picky about file shares.  Might be easier to create a rule on the WLAN to allow traffic from the NAS to your LAN so it can broadcast itself to your LAN network.  You can easily do that adding your FreeNAS as the Source and protocol to ANY and rest by defaults.  This way rest of the hosts on the WLAN won't have access to your LAN.

                        Darkk

                        1 Reply Last reply Reply Quote 0
                        • S
                          sandman06
                          last edited by

                          has anyone actually have a similar scenario?

                          because these suggestion do not actually work.

                          I would appreciate someone print screen shot their rules and posting them for me to have a example to follow.

                          1 Reply Last reply Reply Quote 0
                          • GruensFroeschliG
                            GruensFroeschli
                            last edited by

                            Yes i run the same setup and it works just fine.

                            My firewall rule for the WLAN:

                            wlan_rules.png
                            wlan_rules.png_thumb

                            We do what we must, because we can.

                            Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

                            1 Reply Last reply Reply Quote 0
                            • W
                              wallabybob
                              last edited by

                              It would be helpful if you were much more specific in your reports than "does not work". For example, complete the sentence I did … and I saw ... but I expected to see ... and give the exact text of any report from the computer.

                              When you changed firewall rules did you Reset states afterwards? In the web gui, go to Diagnostics -> States, click on the Reset States tab for an explanation.

                              I don't have your configuration but I do have a Linux system on an OPTx network and it routinely accesses Windows shares on my LAN network in order to back them up. The access is allowed for the firewall on the OPTx interface: PASS PROTO=IPv4*, Source=, Port=, Destination=, Port=, Gateway=*, Queue=None, Schedule= <blank>I suggest you start with a similarly open rule and get that working then gradually tighten it (remember to reset firewall states) to your requirements by changing one rule parameter at a time.</blank>

                              1 Reply Last reply Reply Quote 0
                              • S
                                sandman06
                                last edited by

                                thank you i will try this on the new snapshot when i get a chance.

                                1 Reply Last reply Reply Quote 0
                                • S
                                  sandman06
                                  last edited by

                                  i fixed it guys.

                                  tried the new snapshot and its working now with the rule activated on lan

                                  however i had to insert the ip via //ip/share etc

                                  because it doesnt seems to auto discovery when click network which is no problem

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