summaryrefslogtreecommitdiff
path: root/network/sshblock/sshblock.tpl
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2012-12-16 22:16:20 +0100
committerMatteo Bernardini <ponce@slackbuilds.org>2012-12-16 22:16:31 +0100
commit8d0150f686ed0c03f6ec2a224277a3afa15b4213 (patch)
treef7c72f22ad61a738a4684ddee3b2302c9531ccc5 /network/sshblock/sshblock.tpl
parentde6041627c2629bea001f10f27604f8fa0a615f6 (diff)
downloadslackbuilds-8d0150f686ed0c03f6ec2a224277a3afa15b4213.tar.gz
network/sshblock: Added (an SSH dictionary-attack blocker).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
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 0000000000..d8d146836b
--- /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
+