2020-02-18 21:30:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Tailscale node agent
|
|
|
|
Documentation=https://tailscale.com/kb/
|
|
|
|
Wants=network-pre.target
|
|
|
|
After=network-pre.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=/etc/default/tailscaled
|
2020-11-10 04:13:51 +00:00
|
|
|
ExecStartPre=/usr/sbin/tailscaled --cleanup
|
2020-02-18 21:46:03 +00:00
|
|
|
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port $PORT $FLAGS
|
2020-07-13 11:17:58 +01:00
|
|
|
ExecStopPost=/usr/sbin/tailscaled --cleanup
|
2020-02-18 21:30:54 +00:00
|
|
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
RuntimeDirectory=tailscale
|
|
|
|
RuntimeDirectoryMode=0755
|
|
|
|
StateDirectory=tailscale
|
|
|
|
StateDirectoryMode=0750
|
2020-04-05 00:51:40 +01:00
|
|
|
CacheDirectory=tailscale
|
|
|
|
CacheDirectoryMode=0750
|
2020-11-24 23:35:04 +00:00
|
|
|
Type=notify
|
2020-02-18 21:30:54 +00:00
|
|
|
|
2020-12-27 12:04:36 +00:00
|
|
|
DeviceAllow=/dev/net/tun
|
|
|
|
DeviceAllow=/dev/null
|
|
|
|
DeviceAllow=/dev/random
|
|
|
|
DeviceAllow=/dev/urandom
|
|
|
|
DevicePolicy=strict
|
2020-12-25 00:14:58 +00:00
|
|
|
LockPersonality=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
PrivateTmp=true
|
2020-12-27 12:04:36 +00:00
|
|
|
ProtectClock=true
|
2020-12-25 00:14:58 +00:00
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=/etc/
|
|
|
|
RestrictSUIDSGID=true
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
|
2020-02-18 21:30:54 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|