The proper syntax for these commands is:
tailscale serve --bg --tcp 80 tcp://localhost:30021
tailscale serve --bg --tcp 443 tcp://localhost:30022
The proper syntax for these commands is:
tailscale serve --bg --tcp 80 tcp://localhost:30021
tailscale serve --bg --tcp 443 tcp://localhost:30022
Thanks, formatting was screwed up. Fixed in the original.
Im using duckdns for the DNS domain, and in the part where you set up the IP and ports, which ones do i need to set?? And also, what how do i test everything is ok??
Thanks for writing this! I have some additional setup notes in case it helps anyone with doing this:
In âDeploying Nginx Proxy Managerâ, if youâre having the app stuck at âdeployingâ, you may need to add the environment variable for S6_STAGE2_HOOK as sed -i $d /etc/s6-overlay/s6-rc.d/prepare/30-ownership.sh (more info in Nginx: Hangs for almost 25 minutes at deploying in npm - #2 by HITMAN )
In Adding a new Host, Cert and Service, as already mentioned you will want to create a record for each service youâre hosting. Nginx proxy manager is going to complain if you attempt to do multiple services at different ports using the same certificate.
In Adding a new Host, Cert and Service â Step 2: Add Proxy Host to NPM, if needed you could set the âForward Hostname/IPâ to the serverâs tailscaleIP rather than the lanâs , this could help in situations where you have to use DHCP.
In Adding a new Host, Cert and Service â Step 2: Add Proxy Host to NPM, there could be some app-specific settings here depending on what youâre running. Hereâs a shortlist of just a few settings to be aware of, you may need to tinker and search a bit for more:
Frigate:
Home Assistant (two important things here)
ERROR (MainThread) [homeassistant.components.http.forwarded] A request from a reverse proxy was received from <IP-TO-ADD-TO-TRUSTED-PROXIES-IN-CONFIGURATION-YAML>, but your HTTP integration is not set-up for reverse proxiesLinkding:
Hi there, this guide is awesome and exactly what Iâm looking for. But Iâm reviving this part of the thread because I ran into the same issue and canât seem to figure out what is going wrong. I think Iâve done everything right but Iâm still getting the âconnection was resetâ error when I try to access the service with my domain. Hereâs what I have done so far:
tailscale serve status command)Here is where the problem began. When I tried visiting my tailscale IP like you suggest on this step. I got the connection error. I thought I did not forward the ports correctly in the tailscale shell, but then I ran the
tailscale serve statuscommand and everything looks like the screenshot you posted. So, I decided to keep going hoping it would work after I finished the other steps.
Despite all of this, when I try to access the service from a device connected to my tailnet, I keep getting the same âThe connection was resetâ error. Iâve tried multiple devices and browsers and nothing is working. I would appreciate some help. Thank you!
Iâve followed this in full but when trying to add the Proxy Host in Nginx and hitting save it processes for a few seconds and then shows âInternal Errorâ at the top
Iâve tried a number of suggestions found on web for same error but nothing is resolving it. One suggestion is to forward 80 and 443 on my router to the TrueNAS box but I thought that was what we were avoiding by using this configuration. Am I wrong?
I got this error because my domain was not propagated on the internet dns. I was too fast.
How can make the URL available in local network? I only have a FRITZ!Box.
You need whatever serves DNS for your LAN to respond appropriately. I donât know if your Fritzbox can do this; if not, you could use a router that isnât brain-damaged, or you could set up something else to do DNS on your LAN. A Pi-Hole installation is popular for this purpose.
I tried to set up a split dns with the âTechnitium DNS Serverâ. However, as I failed with IPv6 DHCP, I returned to the FRITZ!Box.
btw this
is correct, sir. But it didnât make any trouble. I will exchange it, when I donât need VDSL2 supervectoring support anymore.
Fritzbox is a dumb piece of shit (have to use ony myself) Iâve setup blocky for internal dns resolution.
Tailscale forms an excellent secure meshed networked of all your devices that have tailscale installed. If youâre trying access tailscale from your TrueNAS server while on a PC that doesnât have tailscale running, then you wonât be able to access it and will get a connection error. You can either install tailscale on your PC and any device you want to allow access to your NAS (or setup tailscale as a subnet router), or donât use tailscale and just use nginx.
I have followed this guide and it worked perfectly. Thank you!
It would be nice to be able to reach the URLs on the local network as well, but Iâm having trouble making it work. I suspect it has something to do with Tailscale and NPM being on the same host IP. I tried having NPM on a separate IP, but found that the tailscale serve command only works for localhost.
I run pihole for DNS and it works without NPM and when tailscale is not running.
Have anybody made this work or have suggestions for solutions?
This is really helpful, thanks and will be part of my new set up when I finish the build for my new NAS, I have a couple of first time questions:
Many thanks in advance and apologies if these are obvious questions or covered in the write up
I managed to set HTTPS for my services using tailscale serve.
However the main GUI page does not function properly. I get a â400 Bad Request, The plain HTTP request was sent to HTTPS portâ error although I previously run tailscale serve --bg --https=443 443