blob: cd6422cd0810807b8b2894b3ba0fefb680554f5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
[Unit]
Description = Netbird Relay Service
Documentation = https://netbird.io/docs
After = network-online.target syslog.target
Wants = network-online.target
[Service]
Type = simple
EnvironmentFile = -/etc/default/netbird-relay
ExecStart = /usr/bin/netbird-relay --log-file console $NETBIRD_RELAY_ARGS
Restart = on-failure
RestartSec = 5
TimeoutStopSec = 10
CacheDirectory=netbird
ConfigurationDirectory=netbird
LogsDirectory=netbird
RuntimeDirectory=netbird
StateDirectory=netbird
LockPersonality = yes
MemoryDenyWriteExecute = yes
NoNewPrivileges = yes
PrivateMounts = yes
PrivateTmp = yes
ProtectClock = yes
ProtectControlGroups = yes
ProtectHome = yes
ProtectHostname = yes
ProtectKernelLogs = yes
ProtectKernelModules = no
ProtectKernelTunables = no
ProtectSystem = yes
RemoveIPC = yes
RestrictNamespaces = yes
RestrictRealtime = yes
RestrictSUIDSGID = yes
[Install]
WantedBy = multi-user.target
|