[Unit] Description=Endlessh SSH Tarpit Requires=network-online.target [Service] Type=simple Restart=always RestartSec=30sec ExecStart=/opt/endlessh/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=/etc/endlessh PrivateUsers=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true MemoryDenyWriteExecute=true [Install] WantedBy=multi-user.target