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

    Cannot Connect to Samba Shares on TrueNAS Server Via Domain

    Scheduled Pinned Locked Moved DHCP and DNS
    12 Posts 2 Posters 677 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.
    • N
      n3IVI0
      last edited by

      I am running pfSense 24.03, TrueNAS 23.10.2.

      I am using the same configuration I have always used, but suddenly cannot access my samba shares in the normal manner. They don't show up in the Network section of either my Mac or my Windows machine. I cannot connect to them directly using the domain name for my TrueNAS machine, as I have done routinely in the past. I can still mount shares using the IP address of my TrueNAS machine. I also cannot access my Time Machine share anymore, due to this also being a samba share.

      Recently, I had to reinstall pfSense from scratch due to some hardware changes. So I followed my cheat sheet to bring it back online with all the correct settings.

      I have Service Watchdog, mailreport, pfBlockerNG, and WireGuard. I am running Mullvad as my privacy VPN, and route all my traffic through that.

      My TrueNAS configuration never changed. But nonetheless, I recreated all my shares as multi-protocol SMB/NFS shares (I run a Ubuntu Server in VM that needed NFS to access those datapoints, run all my daemons). Here is my network config (hostname and domain redacted).

      truenas.jpg

      I theorized initially that Mullvad, or their DNS servers might be the culprit, but I restored a backup to a point before any packages were installed, and the same problem persisted.

      I always follow this guide to setup my Mullvad connection and routing: https://mullvad.net/en/help/pfsense-with-wireguard

      Per the guide, my WAN_DHCP is the the default gateway.

      My LAN rules:

      Screenshot 2024-06-05 at 9.56.43 AM.png

      I tried adding extra rules and port forwards, but it has no effect. And the problem persisted when there was no Mullvad at all, so it is not that.

      I suspect that the likely culprit is DNS Resolver, but for the life of me, I cannot figure what is causing the problem.

      I am running Quad9 over SSL.

      Screenshot 2024-06-05 at 9.59.04 AM.png

      Screenshot 2024-06-05 at 9.59.13 AM.png

      Screenshot 2024-06-05 at 10.00.08 AM.png

      Can anybody help me suss out why my samba shares, which were working perfectly fine before I had to reinstall pfSense, are now suddenly not visible, not accessible through domain, and can only be mounted via IP? I have been wrestling with this too long and need a fresh set of eyes on it. Thank you.

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @n3IVI0
        last edited by

        @n3IVI0 and does the fqdn resolve? Do a simple test using your fav dns tool, dig, nslookup, host, doggo

        Does it resolve to the IP..

        example - here is my nas fqdn resolving to its ip

        $ dig nas.home.arpa                                                       
                                                                                  
        ; <<>> DiG 9.16.50 <<>> nas.home.arpa                                     
        ;; global options: +cmd                                                   
        ;; Got answer:                                                            
        ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6355                  
        ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1      
                                                                                  
        ;; OPT PSEUDOSECTION:                                                     
        ; EDNS: version: 0, flags:; udp: 1232                                     
        ;; QUESTION SECTION:                                                      
        ;nas.home.arpa.                 IN      A                                 
                                                                                  
        ;; ANSWER SECTION:                                                        
        nas.home.arpa.          1065    IN      A       192.168.9.10              
                                                                                  
        ;; Query time: 3 msec                                                     
        ;; SERVER: 192.168.3.10#53(192.168.3.10)                                  
        ;; WHEN: Wed Jun 05 05:05:11 Central Daylight Time 2024                   
        ;; MSG SIZE  rcvd: 58                                                     
        

        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

        N 1 Reply Last reply Reply Quote 0
        • N
          n3IVI0 @johnpoz
          last edited by n3IVI0

          @johnpoz Here's the result with dig: dig.jpg

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @n3IVI0
            last edited by johnpoz

            @n3IVI0 well why would you think 9.9.9.9 know anything about your local resources.. Do you own home.com, somehow I find that unlikely..

            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

            N 1 Reply Last reply Reply Quote 0
            • N
              n3IVI0 @johnpoz
              last edited by

              @johnpoz In the past, I only needed to specify a domain for LAN purposes. Then my clients could see it and connect to it.

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @n3IVI0
                last edited by

                @n3IVI0 well you were prob registering dhcp? I would not suggest you use some public domain like home.com - use something like the recommended home.arpa as your domain. Setup a dhcp reservation for your nas, or host override to point to its ip..

                And you client can be asking 9.9.9.9 directly - since they are never going to have a clue about your local resources now are they.

                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

                N 1 Reply Last reply Reply Quote 0
                • N
                  n3IVI0 @johnpoz
                  last edited by

                  @johnpoz Will home.arpa work for each device?

                  johnpozJ 1 Reply Last reply Reply Quote 0
                  • johnpozJ
                    johnpoz LAYER 8 Global Moderator @n3IVI0
                    last edited by johnpoz

                    @n3IVI0 I use home.arpa for all my local resources - it is the recommended domain currently to use for local resources.

                    https://datatracker.ietf.org/doc/html/rfc8375
                    Special-Use Domain 'home.arpa.'

                    And it is what pfsense currently defaults too.

                    You still need to have records for what you want to resolve.

                    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

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      n3IVI0 @johnpoz
                      last edited by

                      @johnpoz That fixed it immediately. And as most things are when you have knowledge, it was easy to fix. Thanks for the tip!

                      N 1 Reply Last reply Reply Quote 0
                      • N
                        n3IVI0 @n3IVI0
                        last edited by

                        @n3IVI0 Figured out what was causing all the trouble. I had switched to Kea DHCP. Switched back to ISC DHCP, told it to stop nagging about the deprecation, then I could go into DNS Resolver and tell it to register all my static DHCP leases in the DNS Resolver. Zip. Suddenly my shares were back, and could be seen in Network again. Thanks for the help.

                        johnpozJ 1 Reply Last reply Reply Quote 0
                        • johnpozJ
                          johnpoz LAYER 8 Global Moderator @n3IVI0
                          last edited by

                          @n3IVI0 no problem glad you got it sorted, so your dhcp being kea was also handing out 9.9.9.9 to your clients for dns?

                          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

                          N 1 Reply Last reply Reply Quote 0
                          • N
                            n3IVI0 @johnpoz
                            last edited by

                            @johnpoz Looks like. Dig looks different. Getting through to the domain like it used to. That's the thing that changed that FUBAR'd it. I changed to Kea.

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