Skip to content

Instantly share code, notes, and snippets.

@cdpb
cdpb / gist:7aabf3f0d600e794ee19
Created February 16, 2016 08:58
Block scan servers persistent OpenBSD pf
#!/bin/ksh
LOG="/tmp/access_pot.log"
BLACKLIST="/root/config/pf/persistent-block.list"
set -A RFCS 10 172 192
while true; do
if [[ -a $LOG ]]; then
tail -f $LOG | while read LINE; do