2015-09-29 13:58:11 +00:00
|
|
|
[Unit]
|
|
|
|
|
Description=SSHGUARD provides automatic attack blocking
|
2018-10-31 09:23:53 +00:00
|
|
|
After=network.target
|
2015-09-29 13:58:11 +00:00
|
|
|
|
|
|
|
|
[Service]
|
2021-12-28 13:39:05 +00:00
|
|
|
# added automatically, for details please see
|
|
|
|
|
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
|
|
|
|
ProtectSystem=full
|
|
|
|
|
ProtectHome=true
|
|
|
|
|
PrivateDevices=true
|
|
|
|
|
ProtectHostname=true
|
|
|
|
|
ProtectClock=true
|
|
|
|
|
ProtectKernelTunables=true
|
|
|
|
|
ProtectKernelModules=true
|
|
|
|
|
ProtectKernelLogs=true
|
|
|
|
|
ProtectControlGroups=true
|
|
|
|
|
RestrictRealtime=true
|
|
|
|
|
# end of automatic additions
|
2019-02-06 12:11:02 +00:00
|
|
|
EnvironmentFile=-/etc/sshguard.conf
|
|
|
|
|
ExecStart=/usr/sbin/sshguard -a $THRESHOLD -p $BLOCK_TIME -s $DETECTION_TIME -w $WHITELIST_FILE -b $BLACKLIST_FILE
|
2015-09-29 13:58:11 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
KillMode=process
|
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|