mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 22:23:23 +00:00
`ConfigurationDirectory=endlessh` should be enough. Previous assignment throws a warning with systemd 237 ``` May 13 08:57:18 kernelwtf systemd[1]: Started Endlessh SSH Tarpit. May 13 08:58:20 kernelwtf systemd[1]: /etc/systemd/system/endlessh.service:25: ConfigurationDirectory= path is not valid, ignoring assignment: /etc/endlessh ```
34 lines
651 B
Desktop File
34 lines
651 B
Desktop File
[Unit]
|
|
Description=Endlessh SSH Tarpit
|
|
Requires=network-online.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
RestartSec=30sec
|
|
ExecStart=/usr/local/bin/endlessh
|
|
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
|
|
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectSystem=full
|
|
ProtectHome=true
|
|
NoNewPrivileges=true
|
|
ConfigurationDirectory=endlessh
|
|
PrivateUsers=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
MemoryDenyWriteExecute=true
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|