I have a policy - only those who should know my phone number is family and they are very strict about asking me before giving to anyone who asks. So, it's usually not given. Then for businesses and other places which require a phone number, I use a Google Voice number. From doctors, to banks, or other places. I rarely get the scam calls.
HOWEVER
I get around 6-15 SPAM text messages daily. All 100% Political for Trump, Biden, Harris, or whatever scammer tries to get me to support on my non-shared number. A lot try to guilt you into "donating" to them too! I feel bad because while I won't fall for it, I know many people already do. I have to use Google Messages to effectively block those automatically.
I have AT & T and complained to them about it to be told that I could change my number, but it would be $40.00 to do so. That's a big scam in itself and I refused.
I use Proxmox and don't use Truenas. My setup is basically to install Cockpit on the host server via apt-get and then the 45 Drives cockpit-sharing plugin. This provides the NFS and Samba sharing I need and use. I host Home Assistant in a VM and Docker containers in a few LXC containers which host about 10 containers each. Then, in combination with https://tteck.github.io/Proxmox/ you can set up pretty much anything you need from there.
This is on in computer terms, ancient; a 13 year old Dell Optiplex 990 with 16gb Ram and software such as Authentik and Vaultwarden from different dedicated LXC containers. Never have any issues with overload of the system resources or running out of memory. It's pretty much rock solid.