- Install go if it's not there.
- Install tailscale commands.
go install tailscale.com/cmd/[email protected] go install tailscale.com/cmd/[email protected]
Since this linux is an old version, it still use sysv scripts for service management. To run tailscaled
as a daemon (service), follow the procedure below.
- Copy the script to
/etc/rc0.d/K20tailscaled
. The script is mainly borrowed from this gist. - Adjust the script as appropriate.
- Reboot the system via
reboot
. - Check the service is started.
- By listing all services with
service --status-all
. - Or check the status of this specific service with
service tailscaled status
. If it's alright, you should get the following output.
[ ok ] tailscaled is running.
- By listing all services with
After the daemon service is started, we can start tailscale using command like this.
tailscale up --auth-key ${TS_KEY} --advertise-routes=192.168.0.0/16