| 1 |
[Unit] |
| 2 |
Description=2ping listener |
| 3 |
Documentation=man:2ping(1) |
| 4 |
Documentation=https://www.finnie.org/software/2ping/ |
| 5 |
|
| 6 |
# Recommended listener method is with python3-netifaces, so we want to |
| 7 |
# wait until the network is up before starting, so we can get a full |
| 8 |
# list of IPs. |
| 9 |
Wants=network-online.target |
| 10 |
After=network-online.target |
| 11 |
|
| 12 |
[Service] |
| 13 |
ExecStart=/usr/bin/2ping --listen --quiet |
| 14 |
|
| 15 |
# 2ping requires very little; lock down the running space as much as |
| 16 |
# possible. |
| 17 |
DevicePolicy=closed |
| 18 |
LockPersonality=yes |
| 19 |
NoNewPrivileges=yes |
| 20 |
PrivateDevices=yes |
| 21 |
PrivateTmp=yes |
| 22 |
PrivateUsers=yes |
| 23 |
ProtectControlGroups=yes |
| 24 |
ProtectHome=yes |
| 25 |
ProtectKernelLogs=yes |
| 26 |
ProtectKernelModules=yes |
| 27 |
ProtectKernelTunables=yes |
| 28 |
ProtectSystem=strict |
| 29 |
RestrictAddressFamilies=AF_NETLINK AF_INET AF_INET6 AF_UNIX |
| 30 |
RestrictNamespaces=yes |
| 31 |
RestrictRealtime=yes |
| 32 |
RestrictSUIDSGID=yes |
| 33 |
User=nobody |
| 34 |
|
| 35 |
[Install] |
| 36 |
WantedBy=multi-user.target |