Access to SMB shares are restricted automatically after recent update in 26.04

We have a truenas scale server hosting multiple multiprotocol shares. So they are used as both Unix NFS and Windows SMB shares.

After the recent update application from 26.04.0-MASTER-20251107-020728 to 26.04.0-MASTER-20251219-075007, it is noticed that the access for the SMB part of these shares is restricted to some subnets automatically.

I have not added any allow or deny for hosts or subnets before this.

Not sure where this information is being sourced from and I dont have any means of controlling it either.

Any ideas on this? This creates a lot of problem for users. Right now I booted into the previous BE and the issue is not seen. However I have to move on with updates at some point.

Any help is appreciated.

Why are you running 26.04 in production? Even if you solve this you will likely have rolling issues for months.

4 Likes

I thought it will stabilize like the previous version after a while. It has worked flawlessly so far except for this.

26.04, as the numbering suggests, has not been released yet. It’s in active development so breaking changes are to be expected.
I would never personally run the nightlies on my main machine, there is no guarantee of stability whatsoever.

1 Like

Yes, I agree on that. However is there any way to fix what is been seen here? I think apart from this none of the changes have affected the use of the shares.

Thanks

We added back in the hosts allow / deny parameter for some of the SMB share purposes. Maybe check UI configuration for it. That’s the only change related to networks that has occurred (and would only have an impact if you have some old stale config related to it that now gets applied to the running configuration.

Thanks for this explanation. Would you mind telling me how I can access this configuration? Should I be on the latest snapshot for this?

Currently my version is booted into the update from 26.04.0-MASTER-20251107-020728. When booted into this, the issue I described does not manifest. However once I boot to the snapshot from 26.04.0-MASTER-20251219-075007, the entries which restrict subnets turns up.

Any direction on how to access the allow/deny parameters in the UI would be helpful. I cannot seem to find it when I look in the UI myself. Also let me know if I need to be in the latest snapshot to access the parameters you told about.

Assuming they reimplemented it like in the previous version, you would edit the share and update Hosts Allow and Hosts Deny in Advanced Options. Here are the 25.04 docs that show the fields: SMB Shares Screens | TrueNAS Documentation Hub. We don’t have updated docs for 26.04 on this because, again, you’re running a pre-alpha development version.

You’d need to be on at least whatever nightly was built after the hosts change was merged, but I don’t know what that would be. 20251219–this is a date string, so the one you’re running is more than a month old and surely before that change.

So note for future, change your update channel back to stable since you are using it in production.

Thank you for pointing me to this documentation. I will check in sometime and see if I can see this in the latest update. As you pointed out about the dates in the update string, I did figure that out.

Yes, I went this route because the last time I used 25.x before it became production, it quickly went into a stable state within a few months of use. I assumed this would be the case with 26.04 as well.

As I said previously this has worked flawlessly so far except for what I am reporting here now. I am not complaining, just reporting what I saw as changes that I could not figure out how to modify to work for my use case.

I find no reason to complain about this as it has given superb performance for the shares its hosting - even being used in a VM. This is after moving off from badly managed Netapp filers and older Unix based NFS shares. So thanks for making a great product actually.

I will give a try on the directions here and get back on this.

Yes, I will. I think once this 26.04 version goes into stable, I wont be moving to a pre-release anymore except for some testing purpose elsewhere.

2 Likes

I checked in the existing share edit options for the SMB shares. I dont see the options to add or remove hosts.

Posting the screenshots here.

I will update to the latest version available in a slow day this week and see if the options you listed are available.

Thanks

Things work fine, until they do not!

In the end you are saving your self stress and headaches if something does break, along with reading over release notes before upgrading to be sure you won’t be impacted.

We all love the “latest and greatest” but you will learn over the years, how many issues you can prevent entirely by staying on stable releases, or n+1 back if still supported.

I was wrong, the UI changes haven’t been added yet for the backend changes. This is the risk of using the developmental nightlies in production :slight_smile:

Maybe also take a look at this:

Truenas 25.10 is still listed as for “Early Adopters”, and 25.04.2.6 for General use and the basis for the Enterprise version. So when 26.04. is “ready”, it likely also will be considered for Early adopters, and 25.10. will move up as being fit for general usage. So even if your experience has been positive, it might still be prudent to stay on a 25.xx version on a production server.

2 Likes

Any way to check status and set the hosts.allow and deny from the command line of the NAS? If yes then do let me know as it will be useful.
Thanks

I’m new at this too but if I had this problem I’d consider a fresh install of the ‘stable’ version and then import the database rather than use the same configuration file. Don’t know what to expect doing this but your data should still be intact and so should be able to import to any system.

What’s the output of midclt call sharing.smb.query?

NOTE: if you’re not a developer or not interesting in alpha-testing the product, you shouldn’t be running development nightlies.

1 Like

Attaching the output in the text file here.

midclt-output.txt (6.9 KB)

Hmm.. I don’t think that output is from a recent nightly build. It doesn’t have hostsallow or hostsdeny in it. I added that on 12/05. The share names look a lot like production data / things for $placeatwork. You really shouldn’t be running development nightlies on this. You can in theory update to a latest nightly, but that’s just continuing a dangerous practice.