2019-03-22 23:05:01 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Endlessh SSH Tarpit
|
|
|
|
Requires=network-online.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
RestartSec=30sec
|
|
|
|
ExecStart=/opt/endlessh/endlessh
|
|
|
|
KillSignal=SIGTERM
|
|
|
|
|
2019-03-22 23:21:57 +01:00
|
|
|
# Stop trying to restart the service if it restarts too many times in a row
|
|
|
|
StartLimitInterval=5min
|
|
|
|
StartLimitBurst=4
|
|
|
|
|
2019-03-22 23:05:01 +01:00
|
|
|
StandardOutput=journal
|
|
|
|
StandardError=journal
|
|
|
|
StandardInput=null
|
|
|
|
|
|
|
|
PrivateTmp=true
|
|
|
|
PrivateDevices=true
|
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=true
|
|
|
|
NoNewPrivileges=true
|
|
|
|
ConfigurationDirectory=/etc/endlessh
|
|
|
|
PrivateUsers=true
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
ProtectKernelModules=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
MemoryDenyWriteExecute=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|