Current location

narf Source control manager Git

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-03-17 01:26:37 +0000
committershtrom <shtrom@1991c358-8f32-0410-a49a-990740bdf4c2>2009-03-17 01:26:37 +0000
commite983e2c0542036ee8145845870716bc62cf67677 (patch)
treeb8d6676822894aa5f90e8b009824790177365dc6 /openbsd
parent73b4e20b8a3db24f396499c38175bfab39fccd5b (diff)
[OpenBSD scripts] Export the blocked kiddies list directly from PF's table.
git-svn-id: svn+ssh://scm.narf.ssji.net/svn/shtrom/scripts@502 1991c358-8f32-0410-a49a-990740bdf4c2
Diffstat (limited to 'openbsd')
-rwxr-xr-xopenbsd/denyhost.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd/denyhost.sh b/openbsd/denyhost.sh
index 9a57dfd..924cb94 100755
--- a/openbsd/denyhost.sh
+++ b/openbsd/denyhost.sh
@@ -32,6 +32,7 @@ cat /var/tmp/failed_passwords.list | sort -u > /var/tmp/failed_passwords.list
cat /var/tmp/invalid_users.list /var/tmp/failed_passwords.list | sort -u > $NEW_FILE
+pfctl -t kiddies -vTshow | grep -v Cleared | sed "s/ //g" | sort -n > /var/tmp/blockers.list
for IP in `grep -v -f /var/tmp/blockers.list $NEW_FILE`; do
echo "New offending IP: $IP"
echo "Host and WHOIS information"