Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#31733 - [sshguard] sshguard-journalctl script does not work with systemd 192-1
Attached to Project:
Community Packages
Opened by Radu Potop (wooptoo) - Saturday, 29 September 2012, 16:22 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Thursday, 15 November 2012, 09:00 GMT
Opened by Radu Potop (wooptoo) - Saturday, 29 September 2012, 16:22 GMT
Last edited by Massimiliano Torromeo (mtorromeo) - Thursday, 15 November 2012, 09:00 GMT
|
DetailsScript /usr/lib/systemd/scripts/sshguard-journalctl does not work with systemd 192-1. Sshguard does not read the log at all.
Currently it's something like: /usr/bin/journalctl -flbp info -n0 SYSLOG_FACILITY=10 | /usr/sbin/sshguard -l- "$@" I found that this works: /usr/bin/journalctl -fb _SYSTEMD_UNIT=sshd.service | /usr/sbin/sshguard -l- "$@" |
This task depends upon
Closed by Massimiliano Torromeo (mtorromeo)
Thursday, 15 November 2012, 09:00 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard-1.5-8
Thursday, 15 November 2012, 09:00 GMT
Reason for closing: Fixed
Additional comments about closing: sshguard-1.5-8
1) the -l flag no longer exists
2) SYSLOG_FACILITY=10 does not catch the messages that report the attacking IP (at least with sshd). Need to add SYSLOG_FACILITY=4 too.
3) Moreover, piping journalctl output truncates lines to a certain length, which may result in trouble. Need to add -a flag.
So, I'd suggest using something like this:
/usr/bin/journalctl -afb -p info -n0 SYSLOG_FACILITY=4 SYSLOG_FACILITY=10 | /usr/sbin/sshguard -l- "$@"
Sep 29 19:54:34 blue sshguard-journalctl[351]: iptables: No chain/target/match by that name.
I'm planning to fix it with Abdo's suggestion. Can you check if it works fine for you too?
Now it reads the logs but it won't block anything with iptables.
Thanks for reporting.