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

    Can't access SMB share via SMB name but can access via IP.

    Scheduled Pinned Locked Moved DHCP and DNS
    16 Posts 7 Posters 4.4k 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
      Jarhead @johnpoz
      last edited by

      Or add it to your hosts file on the computer.

      1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @johnpoz
        last edited by

        @johnpoz pfSense is adding it for me again on its own? So I will never get that, when it is working or not.

        PS C:\Users\Bobby> nslookup Rebel12
        Server:  pfsense.home.arpa
        Address:  192.168.10.1
        
        Name:    Rebel12.home.arpa
        Addresses:  192.168.11.20
                  192.168.9.20
        
        
        johnpozJ 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator @Bob.Dig
          last edited by johnpoz

          @bob-dig home.arpa is the new default. I had set local.lan long time ago and have not completely moved to it yet.

          But yes your domain should be added to your windows clients via dhcp

          Why is your fqdn coming back with 2 ips, that is not ideal.

          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.8, 24.11

          Bob.DigB 1 Reply Last reply Reply Quote 1
          • Bob.DigB
            Bob.Dig LAYER 8 @johnpoz
            last edited by

            @johnpoz Ah ok, that was the difference, when I was not using DHCP, thx.

            1 Reply Last reply Reply Quote 0
            • Y
              Yoe777 @Yoe777
              last edited by Yoe777

              @yoe777 Screenshot 2022-11-12 at 14-30-43 Can't access SMB share via SMB name but can access via IP.png

              My main issue is a media player trying to access the broadcasted hostname, I cannot lookup shares via IP on it. Is there a way to enter a static entry directly in pfsense that will redirect the hostname to the IP?

              Y 1 Reply Last reply Reply Quote 0
              • Y
                Yoe777 @Yoe777
                last edited by Yoe777

                @yoe777

                I am a little bit closer by creating a Host Override Static entry under ServicesDNS -> ResolverGeneral -> Settings. My windows machines and linux can access my NAS via hostname now from manual searching for it.

                My media player still is not seeing the share on my NAS because the Hostname broadcast is not passing over the interface. You cannot manually place an search entry it only lists the broadcasted names.

                Any suggestions as a work around?

                johnpozJ M S 3 Replies Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator @Yoe777
                  last edited by johnpoz

                  @yoe777 your media player - which is what exactly is most likely doing some sort of discovery - that is not going to work on a different network.

                  What are you trying play? I use my plex specifically on a different network than my players.. It doesn't have to use discovery - it uses a fqdn to know where the server is.

                  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.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • M
                    MLH01 @Yoe777
                    last edited by MLH01

                    @yoe777 I had a similar issue with accessing my NAS smb shares. My NAS is running TrueNAS CORE. Like you, I added a host override in pfSense (under Services > DNS Resolver > General Settings).

                    NAS details:
                    Network: VLAN10 (192.168.10.x)
                    Hostname: truenas
                    Parent domain: local

                    I was then able to access and map the shares on my Windows computers connected on my default LAN (192.168.1.x) using \\truenas.local[sharename]. I was able to access the shares on my Mac mini the same way.

                    I use MediaPortal for my media server, also located on the default LAN. I still needed to manually set the media source paths (using \\truenas.local[sharename]) as it wasn't able to locate truenas shares on the network by itself. Let me know if you have the same media server and I will post instructions.

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MLH01 @MLH01
                      last edited by MLH01

                      Note: I meant to write \\truenas.local[backslash][sharename] above. The backslashes don't seem to work...

                      1 Reply Last reply Reply Quote 0
                      • S
                        skogs @Yoe777
                        last edited by

                        @yoe777
                        Frequently those media player apps on a roku or even the service/host discovery on windows doesn't use SMB to find the information. It uses multicast mdns/avahi/servicediscovery/bonjour/whatever. It is expecting to find things automatically with a 224.x.x.x broadcast ip.
                        You might need to add a rule for networks...not sure if the stopping point is pfsense or some other host based firewall but the idea is:

                        src: any/lan
                        destination: 224.0.0.251
                        destination port 5353

                        (at least that is the mdns traffic I see on my network...guessing yours is similar.

                        R 1 Reply Last reply Reply Quote 0
                        • R
                          rcoleman-netgate Netgate @skogs
                          last edited by

                          @skogs opening 5353 in that manner won't pass multicast traffic -- that's unroutable.

                          AVAHI will do mdns passing between interfaces.

                          Ryan
                          Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
                          Requesting firmware for your Netgate device? https://go.netgate.com
                          Switching: Mikrotik, Netgear, Extreme
                          Wireless: Aruba, Ubiquiti

                          S 1 Reply Last reply Reply Quote 0
                          • S
                            skogs @rcoleman-netgate
                            last edited by

                            @rcoleman-netgate
                            yaya ^^ that thing.

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