2021-06-17 23:14:00 +02:00
|
|
|
[Unit]
|
|
|
|
Description=SSH Auth Logging
|
|
|
|
Requires=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30sec
|
|
|
|
# Path to the executable
|
2024-09-29 23:15:18 +02:00
|
|
|
ExecStart=/home/user/go/bin/sshlog -a 0.0.0.0:2222
|
2021-06-17 23:14:00 +02:00
|
|
|
KillSignal=SIGTERM
|
|
|
|
|
|
|
|
# Stop trying to restart the service if it restarts too many times in a row
|
|
|
|
StartLimitInterval=5min
|
|
|
|
StartLimitBurst=4
|
|
|
|
|
|
|
|
StandardOutput=journal
|
|
|
|
StandardError=journal
|
|
|
|
StandardInput=null
|
|
|
|
|
|
|
|
DynamicUser=yes
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
|
|
|
PrivateMounts=true
|
|
|
|
ProtectSystem=full
|
|
|
|
#ProtectHome=true
|
|
|
|
RestrictNamespaces=true
|
|
|
|
InaccessiblePaths=/run /var /etc
|
|
|
|
|
|
|
|
PrivateUsers=true
|
|
|
|
|
|
|
|
NoNewPrivileges=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|