New to Tailscale. Can I use it along with my own DNS and NPM to access my services externally using my existing internal custom domain?
from chazwhiz@lemmy.world to selfhosted@lemmy.world on 23 Jan 09:15
https://lemmy.world/post/42054795
from chazwhiz@lemmy.world to selfhosted@lemmy.world on 23 Jan 09:15
https://lemmy.world/post/42054795
I’ve not done much with external access in the past, but I’m playing with Tailscale and it’s pretty neat. Wondering if I can configure it to work like my local access does:
- I use Nginx Proxy Manager to set easy subdomains for my services, I.e. service.mydomain.com
- I use AdGuard Home and have a redirect for *.mydomain to that NPM
- This works great internally, which is all I’ve really used it for.
- I’ve got tailscale working and I can go externally to server.wackyname.ts.net:serviceport.
- what I’d like to do is have tailscale somehow use the same internal dns/npm info so when I’m on my tailnet service.mydomain.com still works.
- But no other external access, said subdomains do nothing off tailnet.
- Mydomain.com is an actual domain I own. General DNS is at Cloudflare right now (main domain was pointed at a hosted site previously, but that’s not needed anymore)
Any way to pull this off without a ton of complexity?
threaded - newest
I’m not an expert, take this with a very big grain of salt.
But I think what you want here is for your home server tailscale to act as an exit node for your remote connection.
This will mean that your phone for example will route traffic through your home server, using its AdGuard DNS.
You can even set it up to conditionally use it as an exit mode, iirc.
Interesting. I saw the exit node feature but didn’t look into it closely. I’ll check it out. Thanks!
Also use advertise-routes to get access to the network as opposed to just the node. Like e.g.
.
@chazwhiz yes you can. Setup a subnet and just tell Tailscale to use your dns. I’m guessing you already have your dns pointing to NPM?
Can you be more specific?
Yes, also Tailscale already provides hostname dns for every device on your tailscale net.
I know it gives me their magicdns, like server.wackyname.ts.net, I’m talking about using my own domain.
slap the tailscale ips into your dns entries then. I do that.
Do a DNS rewrite at AGH, but instead of the LAN IP make it the Tailscale IP of your NPM machine. Then configure AGH’s IP address as one of the global nameservers on your Tailscale admin panel
Delete all A/AAAA records on Cloudflare, only use it for registrar purposes and the occassional certs authentication.
Wouldn’t that prevent any devices that don’t have tailscale from using it even locally?
.