-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path2ping.service
36 lines (32 loc) · 886 Bytes
/
2ping.service
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
[Unit]
Description=2ping listener
Documentation=man:2ping(1)
Documentation=https://www.finnie.org/software/2ping/
# Recommended listener method is with python3-netifaces, so we want to
# wait until the network is up before starting, so we can get a full
# list of IPs.
Wants=network-online.target
After=network-online.target
[Service]
ExecStart=/usr/bin/2ping --listen --quiet
# 2ping requires very little; lock down the running space as much as
# possible.
DevicePolicy=closed
LockPersonality=yes
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=strict
RestrictAddressFamilies=AF_NETLINK AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
DynamicUser=yes
[Install]
WantedBy=multi-user.target