Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Mehani <shtrom@ssji.net>2016-08-17 00:16:28 +0200
committerOlivier Mehani <shtrom@ssji.net>2016-08-17 13:39:39 +0200
commiteb80f08bf5b831f50e8a227a9aa281fa77c98808 (patch)
tree2be730580b3186fde17e065cfb883878463792e2
parent0c0bb81b44be810759a95eb08cae5397422e6ebf (diff)
[denyhost] Restore AUTHTRIES logic
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
-rwxr-xr-xopenbsd/denyhost.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsd/denyhost.sh b/openbsd/denyhost.sh
index 15f4e31..902c2c1 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -150,9 +150,8 @@ grep -v "Received disconnect" ${SSH_LOG} | \
> ${SSH_FILTERED_LOG}
gsed -n "s/${SSH_PATTERN}/\2/p" ${SSH_FILTERED_LOG} | \
sort | uniq -c | \
- gsed "/^ *1 */d;s/.* //" \
+ gsed "/^ *[1-$AUTHTRIES] */d;s/.* //" \
>> ${NEW_BLOCKERS_FILE}
- # gsed "/^ *[1-$AUTHTRIES] */d;s/.* //" \
for IP in `cat $NEW_BLOCKERS_FILE`; do
process_ip $IP