lcts/sshguard

Description

Fedora Packaging for SSHGuard

SSHGuard protects hosts from brute-force attacks against SSH and other services. It aggregates system logs and blocks repeat offenders using one of several firewall backends.

SSHGuard can read log messages from standard input or monitor one or more log files. Log messages are parsed, line-by-line, for recognized patterns. If an attack, such as several login failures within a few seconds, is detected, the offending IP is blocked. Offenders are unblocked after a set interval, but can be semi-permanently banned using the blacklist option.

More information can be found on the project website.

Note: This is not an official package. I am not affiliated with the SSHGuard developers. Please only contact me for issues with this package. For issues with SSHGuard, please contact the developers directly.

Important: Due to the older version of RPM on RHEL/CentOS 6/7, you'll have to create the config file yourself after installation (see below), and on RHEL/CentOS 6, sshguard uses SysVinit and logs to /var/log/syslog.

Installation Instructions

This package ships with three subpackages that configure the different firewall backends SSHGuard supports. If dnf is configured to also install weak dependencies (the default), it will automatically install the one corresponding to your installed firewall. Otherwise, you have to install one manually:

For firewalld $ dnf install sshguard-firewalld For iptables-services $ dnf install sshguard-iptables For nftables $ dnf install sshguard-nftables

or use the example config file /usr/share/doc/sshguard/examples/sshguard.conf.example.

After installation, SSHGuard can be enabled via systemctl:

$ systemctl enable --now sshguard.service

Please refer to the setup documentation for details.

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Epel for CentOS 6 i386 (0)*, x86_64 (0)* Epel for CentOS 6 (18 downloads)
Epel for CentOS 7 aarch64 (0)*, ppc64le (0)*, x86_64 (0)* Epel for CentOS 7 (25 downloads)
Fedora 29 aarch64 (0)*, i386 (0)*, ppc64le (0)*, x86_64 (0)* Fedora 29 (65 downloads)
Fedora 30 aarch64 (0)*, i386 (0)*, ppc64le (0)*, x86_64 (0)* Fedora 30 (52 downloads)
Fedora 31 aarch64 (0)*, i386 (0)*, ppc64le (0)*, x86_64 (0)* Fedora 31 (1 downloads)
Fedora rawhide aarch64 (0)*, i386 (0)*, ppc64le (0)*, x86_64 (0)* Fedora rawhide (33 downloads)
Rhelbeta 8 aarch64 (0)*, x86_64 (0)* Rhelbeta 8 (5 downloads)

* Total number of packages downloaded in the last seven days.