FS#53228 - [sshguard] Requires a configuration file
Attached to Project:
Community Packages
Opened by Ludovic Fauvet (etix) - Thursday, 09 March 2017, 15:20 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 11 March 2017, 14:20 GMT
Opened by Ludovic Fauvet (etix) - Thursday, 09 March 2017, 15:20 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 11 March 2017, 14:20 GMT
|
Details
Description: sshguard 2.0.0 now requires a configuration
file, this file must be located in
%PREFIX%/etc/sshguard.conf but since the package is compiled
with PREFIX=/usr the package is looking for the
configuration in /usr/etc/sshguard.conf. Furthermore, the
example file is not provided by the package.
Steps to reproduce: 1. Install sshguard 2. Run sshguard Result: sshguard sshguard: Could not read '/usr/etc/sshguard.conf' sshguard: Please configure SSHGuard. |
This task depends upon
Closed by Doug Newgard (Scimmia)
Saturday, 11 March 2017, 14:20 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard 2.0.0-3
Saturday, 11 March 2017, 14:20 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard 2.0.0-3
Some sample config files can be found if you download the package source and look into the `examples` folder.
Sshguard 2.0 can now read journalctl on its own using the LOGREADER directive from the config.
The wrapper script found at `/usr/lib/systemd/scripts/sshguard-journalctl` is no longer needed since LOGREADER now does exactly that.
The BACKEND directive is also a must: BACKEND="/usr/libexec/sshg-fw-iptables"
And a new .service file is needed which will start sshguard without any other parameters.
The old blacklist.db is fine and is provided via: BLACKLIST_FILE=120:/var/db/sshguard/blacklist.db
Hopefully this will be fixed soon and we will have a working package as I rely on it for an added layer of protection.
The `/usr/lib/systemd/scripts/sshguard-journalctl` script should be removed since it't not part of the original distribution anyway, and replaced with the LOGREADER directive in the config file:
BACKEND="/usr/libexec/sshg-fw-iptables"
LOGREADER="LANG=C /usr/bin/journalctl -afb -p info -n1 -t sshd -o cat"
BLACKLIST_FILE=120:/var/db/sshguard/blacklist.db
Process: 653 ExecStartPre=/usr/sbin/iptables -N sshguard (code=exited, status=1/FAILURE)
it is ok, it means chain already exists and should be ignored.
in /etc/sshguard.conf LOGREADER="LANG=C /usr/bin/journalctl -afb -p info -n1 -t sshd -o cat"
Does sshguard read this config?
Thank you all.