diff --git a/tailscale/systemd/tailscaled.defaults b/tailscale/systemd/tailscaled.defaults new file mode 100644 index 0000000..e8384a4 --- /dev/null +++ b/tailscale/systemd/tailscaled.defaults @@ -0,0 +1,8 @@ +# Set the port to listen on for incoming VPN packets. +# Remote nodes will automatically be informed about the new port number, +# but you might want to configure this in order to set external firewall +# settings. +PORT="41641" + +# Extra flags you might want to pass to tailscaled. +FLAGS="" diff --git a/tailscale/systemd/tailscaled.service b/tailscale/systemd/tailscaled.service new file mode 100644 index 0000000..3ae5e8a --- /dev/null +++ b/tailscale/systemd/tailscaled.service @@ -0,0 +1,16 @@ +[Unit] +Description=Tailscale node agent +Documentation=https://tailscale.com/kb/ +Wants=network-pre.target +After=network-pre.target NetworkManager.service systemd-resolved.service + +[Service] +EnvironmentFile=/usrdata/tailscale/systemd/tailscaled.defaults +ExecStartPre=/usrdata/tailscale/tailscaled --cleanup +ExecStart=/usrdata/tailscale/tailscaled --statedir=/usrdata/tailscale/ --port=${PORT} $FLAGS +ExecStopPost=/usrdata/tailscale/tailscaled --cleanup +Restart=on-failure +Type=notify + +[Install] +WantedBy=multi-user.target \ No newline at end of file diff --git a/tailscale/tailscale b/tailscale/tailscale new file mode 100644 index 0000000..3b24e9e Binary files /dev/null and b/tailscale/tailscale differ diff --git a/tailscale/tailscaled b/tailscale/tailscaled new file mode 100644 index 0000000..0747d3b Binary files /dev/null and b/tailscale/tailscaled differ