Using Tailscale with TrueNAS Scale (CIDR IP range)

When setting up Tailscale on my TrueNAS machine, I got hung up on Advertised Routes section. I’m not 100% sure on where to find the proper route to input here. My best guess was to go to terminal (on linux) and use ip route. That gave me a 192.x.x.x/xx route that I put in for tailscale. Would that be correct?

P.S. Now that I think about it, my machine that I ran that command from is a on a different Wifi network than my TrueNAS machine. So the route that I got probably would be different. So I would guess I need to be on the same network as the machine, then run the ip route command.

You can set Advertise Routes under the App-Edit-Page.
Here you have a section Advertise Routes under Tailscale Configuration.

I added here my home network 192.168.15.0/24 and my pbx-telefon-system from my office network with 192.168.222.77/32.

I just haven’t figured out, how to set up the IP forwarding on the host via System > Advanced Settings > Sysctls.

I suppose my question is how did you obtain those two IP ranges?

These are all of my app settings on Dragonfish-24.04.2.5. All I did was look at the IP range of my network (192.168.1.0/24) and type it in. If I had an isolated network e.g. wifi at 192.168.2.0 or something I would put that in instead. If I wanted both, I am not sure what I would type.

It means I can connect from outside my LAN (e.g. 4G phone) and listen for example to my own music collection stored in a share on my TN box.

You just Add another Advertise Routes entrie and put in the other route.

But how did you enabled IP forwarding on the host via System > Advanced Settings > Sysctls? I can’t reach my LAN-printer from my notebook, when Tailscale is activated on it.

Okay, that makes sense. Thank you. With this in mind, I now have two IP ranges advertised corresponding to my two Wifi networks at home.

Thanks for the help :slight_smile:

Oh yes - obvious! Thanks.

As far as any other settings are concerned, I didn’t do anything else. My sysctl looks like this:

I added the following:


But I don’t have an Exit Node for my TrueNAS and I can’t reach my
LAN-printer from my PCs with Tailscale enabled.

Now I can access printer.
TCP/IP Port was set by printer with a name and not with the IP.
After setting the IP to the TCP/IP Port manually, I can reach the printer with Tailscale enabled.

Well it works withadding those 2 lines to the sysctl

FYI I´m about 99% sure since truenas has following filepath /etc/sysctl.d/

That you could initialize this with a post install script or commands as per tailscale instructions. But it´s not needed since this just works, at least for me.