summarylogtreecommitdiffstats
path: root/sshpiperd-webadmin.service
blob: 3d5c0fbfa73ebf8d6332a561eda42488d61c9686 (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
42
43
44
45
[Unit]
Description=SSHPiper: ssh reverse proxy - Webadmin service
After=network.target sshpiperd.service
Wants=sshpiperd.service

[Service]
AmbientCapabilities=CAP_NET_BIND_SERVICE
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
DevicePolicy=closed
DynamicUser=yes
EnvironmentFile=-/etc/default/sshpiperd-webadmin
ExecStart=/usr/bin/sshpiperd-webadmin $OPTS
LockPersonality=yes
MemoryDenyWriteExecute=yes
MemoryMax=10%
MemorySwapMax=10%
NoNewPrivileges=true
PermissionsStartOnly=true
PrivateDevices=yes
PrivateTmp=true
#PrivateUsers=yes
ProcSubset=pid
ProtectClock=true
ProtectControlGroups=true
ProtectHome=yes
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RemoveIPC=true
#RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SecureBits=noroot
SyslogIdentifier=collectd_exporter
SystemCallArchitectures=native
SystemCallFilter=~@clock @cpu-emulation @debug @module @mount @obsolete @privileged @raw-io @reboot @resources @swap
Type=simple
UMask=0026

[Install]
WantedBy=multi-user.target