aboutsummaryrefslogtreecommitdiff
path: root/network/sshblock/sshblock.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'network/sshblock/sshblock.tpl')
-rw-r--r--network/sshblock/sshblock.tpl8
1 files changed, 8 insertions, 0 deletions
diff --git a/network/sshblock/sshblock.tpl b/network/sshblock/sshblock.tpl
new file mode 100644
index 0000000000000..d8d146836b614
--- /dev/null
+++ b/network/sshblock/sshblock.tpl
@@ -0,0 +1,8 @@
+watchfor /Failed password for invalid user \w+ from ([\d\.]+) port/
+ exec "/usr/sbin/sshblock.pl $1"
+ threshold track_by=$1, type=threshold, count=3, seconds=90
+
+watchfor /Failed password for root from ([\d\.]+) port/
+ exec "/usr/sbin/sshblock.pl $1"
+ threshold track_by=$1, type=threshold, count=3, seconds=30
+