summaryrefslogtreecommitdiffstats
path: root/network/sshblock/sshblock.tpl
blob: d8d146836b6147908429f38ab95f3c892d499bb2 (plain)
1
2
3
4
5
6
7
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