sipeed / NanoKVM

NanoKVM: Affordable, Multifunctional, Nano RISC-V IP-KVM
GNU General Public License v3.0
3.23k stars 60 forks source link

Permanently disable tailscale service #116

Open FingerlessGlov3s opened 4 weeks ago

FingerlessGlov3s commented 4 weeks ago

I would like to keep the tailscale service stopped between reboots as it keeps a concurrent connection to tailscale servers, when it's a feature I'm not going to use, all access will be done locally or over S2S VPNs of physical firewalls.

For now I've just done the below, but wondered if there's a better way, other than just moving the file somewhere else.

 /etc/init.d/S98tailscaled stop
dulasau commented 3 weeks ago
chmod -x  /etc/init.d/S98tailscaled

doesn't work?

FingerlessGlov3s commented 3 weeks ago
chmod -x  /etc/init.d/S98tailscaled

doesn't work?

I'm pretty sure doing that won't do anything due to the filesystem being fat32 and has no concept of permissions, everything is rwx in the filesystem.

Deleting the file would stop it happening, but I don't want it coming back when I upgrade and forget I deleted it. This maybe more a feature feature, if there's not offical way to disable the starting of a service, like you can do with systemd or normal other init systems.

dulasau commented 3 weeks ago

/dev/mmcblk0p2 on / type ext4 (rw,relatime)

FingerlessGlov3s commented 3 weeks ago

/dev/mmcblk0p2 on / type ext4 (rw,relatime)

Ah my bad, either confused with an old security post I was reading about it, or I just dreamt that. 😅

Question is will that stick between upgrades, assuming the upgrade won't revert the permission. If the updates are only delta's of what has changed file wise on the filesystem, it maybe fine until they update the tailscale init.d file.

I'm unlikily to upgrade it constantly, so I'll probably just add it ot my internal documentation to run the below after each upgrade to ensure it's got no execute perms, rather than just deleting the file.

ssh root@ip 'chmod -x /etc/init.d/S98tailscaled && reboot'
wj-xiao commented 2 weeks ago

There are currently two ways to disable Tailscale:

We will be adding a switch in the web page to allow users to decide whether Tailscale should run at startup.