Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-05-28 02:29:38 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-05-28 02:29:38 +0000
commit6b79858bc0e6023cac1b097bd3f6e96907829b23 (patch)
tree9e2763f6645bbf986bb11f81ac7e775ff1f958d4 /openbsd
parent312c9606692a7d53aa26bf3e15bb4d8141de844d (diff)
[OpenBSD scripts] Filter out address search-ripe-ncc-not-arin@ripe.net in
denyhosts report. git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@548 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 8226089..64941d9 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -45,7 +45,7 @@ for IP in `grep -v -f ${TMP_DIR}/blockers.list $NEW_BLOCKERS_FILE`; do
WHOIS_FILE=`mktemp ${TMP_DIR}/whois.XXXXXX`
whois $IP > $WHOIS_FILE
ABUSE=`grep -v changed $WHOIS_FILE | gsed -n "s/.*[^-+_A-Za-z0-9]\([-+\._A-Za-z0-9]\+@\([-A-Za-z0-9]\+\.\)\+[A-Za-z]\+\).*/\1/p" | \
- gsed "/whois-contact@lacnic.net/d;/mail-abuse@cert.br/d;/search-apnic-not-arin@apnic.net/d" | \
+ gsed "/whois-contact@lacnic.net/d;/mail-abuse@cert.br/d;/search-apnic-not-arin@apnic.net/d;/search-ripe-ncc-not-arin@ripe.net/d" | \
sort | uniq | gsed ':a N;s/\n/, /g; ta'`
LOGIN_FILE=`mktemp ${TMP_DIR}/logins.list.XXXXXX`