CypherpunkArmory / UserLAnd

Main UserLAnd Repository
Other
3.6k stars 398 forks source link

Using tailscale VPN within UserLand Ubuntu terminal session #1923

Open zradai opened 8 months ago

zradai commented 8 months ago

Heyo,

I'm using v23.09.13 within Android 13 (TKQ1.221114.001) for a while now, and so far I really like it. Recently I tried to install and set up tailscale VPN within a terminal session of Ubuntu (22.04.4 aarch64), which I'd like to use to access my other devices within my tailscale network. For the installation, I used the one-liner provided by tailscale (https://tailscale.com/download):

curl -fsSL https://tailscale.com/install.sh | sh

which seemingly worked fine. Next, however, when I try to get it up and running with the following command:

sudo tailscale up

I get the error message: "failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)". Based on what information I could gather (e.g. see https://tailscale.com/kb/1130/lxc-unprivileged), this is likely due to that tailscale needs root privileges to access things within /dev, but UserLand by default does not povide access even with sudo.

There is a suggested work-around (https://tailscale.com/kb/1112/userspace-networking) setting up a proxy in a way that it's not supposed to rely directly on the device drivers (/dev/tun, /dev/net/tun), and the suggested command for that is:

tailscaled --tun=userspace-networking --socks5-server=localhost:1055 & tailscale up

but it doesn't work either, giving the following error: "netmon.New: route ip+net: netlinkrib: permission denied"

Is there any way to resolve these permission issues, or to configure UserLand either to improve on the user's privileges, and/or a work-around for tailscale?

Notably, both cisco VPN and OpenVPN work fine from the same within-UserLand linux shell.

Cheers

Yasin1366 commented 8 months ago

Hello, where can we copy the codes from?

Yasin1366 commented 8 months ago

I can't find cods