File: sshguard-journalctl

package info (click to toggle)
sshguard 1.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,480 kB
  • ctags: 856
  • sloc: ansic: 3,686; sh: 1,809; lex: 234; yacc: 208; makefile: 71
file content (7 lines) | stat: -rw-r--r-- 229 bytes parent folder | download
1
2
3
4
5
6
7
#!/bin/sh

if [ "$ENABLE_FIREWALL" = "1" ]; then
	/bin/journalctl -afb -p info -n1 -o cat SYSLOG_FACILITY=4 SYSLOG_FACILITY=10 | /usr/sbin/sshguard "$@"
else
	echo "sshguard is not enabled, please check /etc/default/sshguard"
fi