-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathupdate-geoipsets.service
35 lines (34 loc) · 1000 Bytes
/
update-geoipsets.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
[Unit]
Description=Update geoipsets
Wants=network.target network-online.target
After=network.target network-online.target
AssertFileIsExecutable=/usr/bin/geoipsets
AssertPathExists=/var/local
[Service]
Type=oneshot
CapabilityBoundingSet=
RestrictAddressFamilies=AF_INET AF_INET6
#if firewall configuration is updated as part of this service, replace the 2 lines above with the 2 lines below
#CapabilityBoundingSet=CAP_NET_ADMIN
#RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK
RestrictNamespaces=true
NoNewPrivileges=true
PrivateDevices=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=full
MemoryDenyWriteExecute=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
ProtectHostname=true
LockPersonality=true
ExecStart=/usr/bin/geoipsets --output-dir /var/local
StandardOutput=journal
StandardError=journal