anasfanani / Magisk-Tailscaled

Magisk/KernelSU module for running Tailscale on rooted Android devices. The easiest, most secure way to use WireGuard and 2FA.
https://t.me/systembinsh/158
Other
220 stars 25 forks source link

Bug in non-userspace-networking #13

Closed yudshj closed 6 months ago

yudshj commented 9 months ago

I tried removing the startup parameter -tun=userspace-networking. After restarting the device, I am unable to log in to Tailscale.

When I use tailscale netcheck, I receive the following error message:

1|:/data/data/com.termux/files/home # tailscale netcheck
2024/01/28 05:08:40 No DERP map from tailscaled; using default.
fetch prodDERPMap failed: Get "https://controlplane.tailscale.com/derpmap/default": dial tcp: lookup controlplane.tailscale.com on [::1]:53: read udp [::1]:50349->[::1]:53: read: connection refused
anasfanani commented 9 months ago

Yeah, for me its not works too. it must run on userspace networking mode only. This depends on tailscale binary, if you want to run in non userspace networking, please open issue in official tailscale repository.

ri-char commented 8 months ago

If there is another proxy application on your phone, you could connect to tailscale via it. Add these lines at the head of start_tailscaled function in /data/adb/tailscale/scripts/tailscaled.service

export HTTP_PROXY=http://127.0.0.1:7890/
export HTTPS_PROXY=http://127.0.0.1:7890/

But I don't know why tailscaled cannot connect to the Internet without a proxy. I tried to capture the packages using tcpdump, but found out nothing. Maybe some rules in iptables block it.

anasfanani commented 6 months ago

I'm sorry for verry late reply, I have other work :( But just for inform you maybe still use tailscale module, check latest pre release at https://github.com/anasfanani/Magisk-Tailscaled/releases

You now can use direct connection to the tailscale IP

Let me close this issue, if you need help and discussion, come to telegram group brother. I will do the best as I can for you.