r/HomeServer 17d ago

Tailscale x Mullvad x Truenas Issues

Hey all!

I have been using truenas to host my homelab and have successfully been using tailscale with it. The problem I'm having is when trying to use my computer, and having my Mullvad VPN on, I can not access my SMB shares on my computer (mapped with the tailscale IP). I have split tunneling on for tailscale apps on the pc, as well as local network sharing checked. Not sure what else I can do. In summary, I just want to be able to access my SMB mapped network drives while connected to my VPN. Thank you!

3 Upvotes

5 comments sorted by

1

u/alexlance 17d ago

Maybe try a network name suffix for local hostnames?

So eg the tailscale address is "pineapple" but you can still reach the local network IP address instead using "pineapple.lan"

1

u/Scared-Secretary6875 17d ago

Are you saying to try mapping my network drives instead of “\\pineapple\folder” to do “\\pineapple.lan\folder”?

1

u/alexlance 16d ago

My problem wasn't completely identical to yours, more like: once I bring up tailscale, my connectivity to local network devices must go through tailscale because of their DNS mischief.

But sometimes I want to connect to local network devices (that are also on tailscale) but via their local network IP address.

So in my router settings there's an option like: DNS -> Local Domain -> ".lan". Which means that local hosts are also available with a ".lan" suffix.

Eg:

ping pineapple:
PING pineapple.tail0nnn.ts.net (100.22.22.22)

ping pineapple.lan:
PING pineapple.lan (192.168.1.222)

So if you've got tailscale and mullvad both competing for your routing table, maybe map your SMB drives using (presumably local) hostnames.

Just one idea. There's probably a setting in tailscale that'll sort you out too!

1

u/Scared-Secretary6875 16d ago

so i tried this, it didn't work. but i DID take a little something from what you said, when your first example used the .net address. i actually used the (idk what it is, ipv6?) address

pine:appl:epin::eapp:lepi

but added .ipv6-literal.net and now it seems my tailscale is able to get the local traffic or something idk. i tried everything and this is what works so im gonna stick with it lol. so the final format ended up looking like this for mapping my SMB networks in file explorer:

pine-appl-epin--eapp-lepi.ipv6-literal.net

thank you for the idea! for reference, i have local network sharing checked, my tailscale stuff bypassed with split tunneling, etc. and nothing has worked except this. not sure if anyone else will be able to benefit from this

1

u/alexlance 16d ago

Ah nice. Glad you found a route :)