Hello toby2106
Bellow is a copy and paste of my tailscale config file from: /storage/.config/system.d The top half of the tailscaled.service file is the system.d config for tailscale and the bottom half are notes to help remind me of how to setup tailscale.
Hope the file help you to set up and runing tailscale !
Reminder: use the command: ./tailscale set --exit-node-allow-lan-access=true
Before you set the exit node so you do not get lock out from ssh to your raspi.
Do a LibreELEC backup to be safe !!
Regards: peter
File name: tailscaled.service
Code
[Unit]
Description=Tailscale LibreELEC agent
Documentation=https://tailscale.com/kb/
Wants=network-pre.target
After=network-pre.target
StartLimitIntervalSec=0
StartLimitBurst=0
[Service]
EnvironmentFile=/storage/.config/tailscale.d/systemd/tailscaled.defaults
ExecStartPre=/storage/.config/tailscale.d/tailscaled --cleanup
ExecStart=/storage/.config/tailscale.d/tailscaled --state=/storage/.config/tailscale.d/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port $PORT $FLAGS
ExecStopPost=/storage/.config/tailscale.d/tailscaled --cleanup
Restart=on-failure
RuntimeDirectory=tailscale
RuntimeDirectoryMode=0755
StateDirectory=tailscale
StateDirectoryMode=0750
[Install]
WantedBy=multi-user.target
##////////////////////////////////////////////////##
# ssh into LibreELEC and wget the tailscale package.
# Download from:
# https://pkgs.tailscale.com/stable/#static
# Downlown to: .config
# # wget https://pkgs.tailscale.com/stable/#static
# tar xvf tailscale-package
# mv tailscale-package tailscale.d
#
# Desktop machine scp the systemd file: tailscaled.service to LibreELEC.
# cd /home/sysadmin/Documents/Kodi
# scp tailscaled.service [email protected]:
#
# Login: ssh [email protected]
# cp tailscaled.service /storage/.config/system.d
# cd /storage/.config/system.d
#
# Run 'systemctl daemon-reload' to reload units
# systemctl enable tailscaled.service
# systemctl start tailscaled.service
#
# cd /storage/.config/tailscale.d
# ./tailscale up
#
# ./tailscale exit-node list
# exit node, use `tailscale set --exit-node=` followed by the hostname or IP
# only for LibreELEC: --accept-dns=false
# ./tailscale set --accept-dns=false
# ./tailscale set --exit-node-allow-lan-access=true
# ./tailscale exit-node suggest
# ./tailscale set --exit-node=hostname
# ./tailscale exit-node list --filter=UK
#
# Show machines on your tailnet configured as exit nodes
# ./tailscale status | grep mull
# ./tailscale bugreport
# systemctl status tailscaled.service > bugs.txt
Display More