tailscale / tailscale-qpkg

Package Tailscale client in QPKG
MIT License
457 stars 38 forks source link

can't ping nas / failed to connect to local tailscaled / Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory #42

Closed roger-richards closed 2 years ago

roger-richards commented 2 years ago

I have successfully (I think) installed tailscale 1.24.2 _x86_64.qpkg on my QNAP TS-453Be. UPDATE - I turned off QuFirewall and it WORKED. Now I need to find the rule that allows tailscale connection. Any suggestions?

_I ssh into qnap and interact with tailscale via CLI. When I try: ./tailscale up I get: failed to connect to local tailscaled (which appears to be running as tailscaled, pid 31923). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

I've made sure the tailscaled daemon was running via CLI with sudo ./tailscaled netcheck Report:

ivokub commented 2 years ago

Great that you got it working. I haven't tested out different firewall rules, but could you have a look at https://github.com/ivokub/tailscale-qpkg/issues/29#issuecomment-986323703, if there is a least-exposing rule for your needs? If your QNAP is on the public internet then it makes sense to restrict the network down.

And it would be really helpful if you let know what did you implement -- you are not the first one to stumble on the firewall problem. I would update the README.

byangmath commented 2 years ago

Hi @ivokub. Everytime I update my tailscale on QNAP (I used headscale as the server), it will be disconnected. I tried: ./tailscale up, but I got

failed to connect to local tailscaled (which appears to be running as tailscaled, pid 7611). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

If I restart QNAP, it works.

ivokub commented 2 years ago

Hi @ivokub. Everytime I update my tailscale on QNAP (I used headscale as the server), it will be disconnected. I tried: ./tailscale up, but I got

failed to connect to local tailscaled (which appears to be running as tailscaled, pid 7611). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

If I restart QNAP, it works.

The socket for communicating between daemon and client is in non-standard location. Instead cd to Tailscale QPKG directory and run ./tailscale -socket var/run/tailscale/tailscaled.sock up

byangmath commented 2 years ago

Hi @ivokub. Everytime I update my tailscale on QNAP (I used headscale as the server), it will be disconnected. I tried: ./tailscale up, but I got

failed to connect to local tailscaled (which appears to be running as tailscaled, pid 7611). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /var/run/tailscale/tailscaled.sock: connect: no such file or directory

If I restart QNAP, it works.

The socket for communicating between daemon and client is in non-standard location. Instead cd to Tailscale QPKG directory and run ./tailscale -socket var/run/tailscale/tailscaled.sock up

It works! Many thanks!