summarylogtreecommitdiffstats
path: root/bandwidthd.service
blob: f9f4675eb99e21deecb0a558b83ad897b7249c7e (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
[Unit]
Description=Daemon for graphing traffic of subnet machines
Requires=network-online.target bandwidthd-rotate.timer bandwidthd-webui.service

[Service]
User=bandwidthd
Group=bandwidthd
CapabilityBoundingSet=CAP_NET_RAW
AmbientCapabilities=CAP_NET_RAW
RestrictAddressFamilies=AF_UNIX AF_PACKET
RestrictNamespaces=true
PrivateDevices=true
NoNewPrivileges=true
PrivateTmp=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectSystem=strict
StateDirectory=bandwidthd
RuntimeDirectory=bandwidthd
ConfigurationDirectory=bandwidthd
RestrictSUIDSGID=true
SystemCallArchitectures=native
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
RemoveIPC=true
UMask=066
ProtectHostname=true
IPAddressDeny=any
SystemCallFilter=@system-service
SystemCallFilter=~@privileged
ExecStart=/usr/bin/bandwidthd -D -c /etc/bandwidthd/bandwidthd.conf
PIDFile=bandwidthd/bandwidthd.pid

[Install]
WantedBy=multi-user.target