Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-03-17 03:47:52 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-03-17 03:47:52 +0000
commit54ad9b53c537b82b0ac14f96c499cfe256a85e1d (patch)
tree2521ef23ecafc1d10a076225fc242fdb333921ab /openbsd
parente983e2c0542036ee8145845870716bc62cf67677 (diff)
[DenyHost script] Grep out irrelevant log lines (disconnects)
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@503 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/denyhost.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsd/denyhost.sh b/openbsd/denyhost.sh
index 924cb94..189fa0f 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -39,7 +39,7 @@ for IP in `grep -v -f /var/tmp/blockers.list $NEW_FILE`; do
host $IP
whois $IP
echo "Incriminated logs:"
- grep $IP $AUTHLOG
+ grep $IP $AUTHLOG | grep -v "Received disconnect"
echo
done