2023-11-23 20:15:07 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Netbird Management
|
|
|
|
Documentation=https://netbird.io/docs
|
|
|
|
After=network-online.target syslog.target
|
|
|
|
Wants=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
EnvironmentFile=-/etc/default/netbird-management
|
|
|
|
ExecStart=/usr/bin/netbird-mgmt management $FLAGS
|
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=5
|
|
|
|
TimeoutStopSec=10
|
|
|
|
CacheDirectory=netbird
|
|
|
|
ConfigurationDirectory=netbird
|
2024-05-13 11:40:57 +02:00
|
|
|
LogsDirectory=netbird
|
2023-11-23 20:15:07 +01:00
|
|
|
RuntimeDirectory=netbird
|
|
|
|
StateDirectory=netbird
|
|
|
|
|
|
|
|
# sandboxing
|
|
|
|
LockPersonality=yes
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
NoNewPrivileges=yes
|
|
|
|
PrivateMounts=yes
|
|
|
|
PrivateTmp=yes
|
|
|
|
ProtectClock=yes
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectHostname=yes
|
|
|
|
ProtectKernelLogs=yes
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
ProtectSystem=yes
|
|
|
|
RemoveIPC=yes
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
RestrictRealtime=yes
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|