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

[Solved] SMB Connect to //COMPUTERNAME on LAN from WLAN?

Scheduled Pinned Locked Moved General pfSense Questions
11 Posts 2 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.
  • J
    johnpoz LAYER 8 Global Moderator
    last edited by Nov 2, 2017, 9:39 AM

    use the FQDN (fully qualified domain name) of the server.. What domain are you running locally?

    I use local.lan for example… So my file server is called storage.local.lan

    Your search suffix should allow you to ping by name and get back fqdn..

    fqdn-searchdomains.png
    fqdn-searchdomains.png_thumb

    An intelligent man is sometimes forced to be drunk to spend time with his fools
    If you get confused: Listen to the Music Play
    Please don't Chat/PM me for help, unless mod related
    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

    1 Reply Last reply Reply Quote 0
    • T
      truetype
      last edited by Nov 2, 2017, 9:51 AM

      @johnpoz:

      use the FQDN (fully qualified domain name) of the server.. What domain are you running locally?

      Thanks for reply, I am unsure, but I believe I am not using any domain locally?
      I have just set up pfSense with WAN, LAN and WLAN and made my unraid server use a static ip 192.168.1.8.

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Nov 2, 2017, 10:09 AM

        And what domain did you setup on pfsense? See pic

        What does your windows machines show for their domain - do a ipconfig /all, what do they show for their search suffix?

        No matter what these are using you can create a host override in pfsense for your servername and add a domain you want… Lets say mydomain.lan -- you could then hit your server via servername.mydomain.lan

        Just setup somedomain.tld to point to my storage box.. As you can see can access the file shares via either name.

        fqdnhostoverride.png
        fqdnhostoverride.png_thumb

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • T
          truetype
          last edited by Nov 2, 2017, 10:29 AM

          @johnpoz:

          And what domain did you setup on pfsense? See pic

          What does your windows machines show for their domain - do a ipconfig /all, what do they show for their search suffix?

          I will check this when I get home from work later today, thanks.

          But if I understood you correctly, and if I configure pfSense this way I cannot use "//SERVERNAME" as I have all my docker plugins configured today, instead I need to reconfigure everything to go for example "//SERVERNAME.mydomain.lan".
          If that is the case, I wonder if there is anyway for me to still use only "//SERVERNAME" as I did with my last router?

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Nov 2, 2017, 12:42 PM

            Pfsense use to just automatic return the host name even when queried without a domain, or not a FQDN.. But this was corrected a while back version 2.2 I believe since its an invalid configuration for dns.  DNS is not suppose to return an answer to just a hostname.. The query needs to be fully qualified.

            Other ways for just \servername to work is broadcast.  Ie your devices on the same network.  Or you could setup wins that is available from all your networks to return such netbios queries..

            The correct solution to name resolution is to correctly setup your domain(s) you to use on your local network and then access your devices via fully qualified queries.  If your just too lazy to use fqdn if you correctly setup search domains on your devices they will auto add the domain your devices are in when you just put in a hostname.

            but accessing anything via just hostname be it via smb \hosname or http:\hostname is bad practice and should be discouraged and avoided..

            Understanding how name resolution works is a big part in running a network anywhere.

            Pfsense can auto be setup to add your dhcp clients into the domain your using on pfsense, your static/dchp reservations or if your setting devices IP static on the device you can always just use the host override feature in either forwarder or unbound (resolver) to point fqdn to any IP..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • T
              truetype
              last edited by Nov 2, 2017, 7:08 PM Nov 2, 2017, 6:36 PM

              @johnpoz:

              Other ways for just \servername to work is broadcast.  Ie your devices on the same network.

              The correct solution to name resolution is to correctly setup your domain(s) you to use on your local network and then access your devices via fully qualified queries.  If your just too lazy to use fqdn if you correctly setup search domains on your devices they will auto add the domain your devices are in when you just put in a hostname.

              Understanding how name resolution works is a big part in running a network anywhere.

              Hey again, so I am home now and I am running the default domain in pfsense which is "localdomain".

              I would like to learn how to set it up correctly, if that is with FQDN. Is there a guide somewhere to do this that you know of?

              Tried to add my server in the Firewall/Aliases/IP but that didn't work, so I opened all the ports that I could find that use SMB and forwarded them but that didn't work either. See pic

              The only thing that worked was adding it in the host override in the DNS Resolver as you mentioned in the end. So it works for now, thanks :) But I'd like to learn the correct way

              prntscrn.png
              prntscrn.png_thumb

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Nov 2, 2017, 6:48 PM

                Why would you port forward?

                There is no reason to do that.. Nor would you have to create any sort of alias or firewall rules for devices on the same network this 192.168.1/24 to talk to each other.

                You can use whatever domain you want, not a fan of the single label domains like host.localdomain.. Something like host.local.domain would be better. Stay away from tld of .domains since this is one of the newer valid tlds..

                Once you have set the domain name in pfsense, you can set your resolver or forwarder to register dhcp leases it hands out, or static reservations you setup, etc.  Or you can just use the host overrides with their valid name.. Guess untrue was not its real hostname?

                Then check your devices that they are using the domain you setup as their search suffix..

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • T
                  truetype
                  last edited by Nov 2, 2017, 7:25 PM

                  @johnpoz:

                  Why would you port forward?

                  There is no reason to do that.. Nor would you have to create any sort of alias or firewall rules for devices on the same network this 192.168.1/24 to talk to each other.

                  You can use whatever domain you want, not a fan of the single label domains like host.localdomain.. Something like host.local.domain would be better. Stay away from tld of .domains since this is one of the newer valid tlds..

                  Once you have set the domain name in pfsense, you can set your resolver or forwarder to register dhcp leases it hands out, or static reservations you setup, etc.  Or you can just use the host overrides with their valid name.. Guess untrue was not its real hostname?

                  Then check your devices that they are using the domain you setup as their search suffix..

                  haha, I don't know why I did a port forward (NAT), I'm super new to this so I experimented. But my thoughts went something like:
                  Because I am on WLAN and want to talk to a different interface which is LAN (see pic for my infaces config) so if I allow traffic on the ports for SMB from WLAN to LAN they could see each others in MS Discovery.

                  Okay, I've changed the domain to "local.domain" now, how can I set my resolver to register DHCP leases or static reservations I setup? Or should I just continue by using host overrides which works really well now?

                  Yes "untrue" is the hostname of my unraid server.  ::)

                  prntscrn1.png
                  prntscrn1.png_thumb

                  1 Reply Last reply Reply Quote 0
                  • J
                    johnpoz LAYER 8 Global Moderator
                    last edited by Nov 3, 2017, 3:40 PM

                    The register dhcp and static are right there on the resolve main config page..

                    There have been some issues with dhcp renews and such causing a restart of unbound.. Have not looked into this in a while.  Since I don't really can to resolve any sort of dynamic device.. Guest users to wifi, etc.

                    My devices pretty much all have a reservation so they always have the same IP… So use of that or host overrides will work just fine.

                    registerdhcp.png
                    registerdhcp.png_thumb

                    An intelligent man is sometimes forced to be drunk to spend time with his fools
                    If you get confused: Listen to the Music Play
                    Please don't Chat/PM me for help, unless mod related
                    SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • T
                      truetype
                      last edited by Nov 3, 2017, 4:19 PM

                      @johnpoz:

                      The register dhcp and static are right there on the resolve main config page..

                      There have been some issues with dhcp renews and such causing a restart of unbound.. Have not looked into this in a while.  Since I don't really can to resolve any sort of dynamic device.. Guest users to wifi, etc.

                      My devices pretty much all have a reservation so they always have the same IP… So use of that or host overrides will work just fine.

                      Alla thanks to you sir! I'll set this thread to solved  :D

                      1 Reply Last reply Reply Quote 0
                      11 out of 11
                      • First post
                        11/11
                        Last post
                      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                        This community forum collects and processes your personal information.
                        consent.not_received