From: Allen R. <al...@z6...> - 2007-03-09 16:25:39
|
Un black list an address #!/bin/bash cd /usr/share/denyhosts /etc/init.d/denyhosts stop # rotate your log file, or it will just add them back unless you # put them in allowed-hosts for f in `grep -wl 128.252.133.7 data/* |egrep -v '(^allowed-hosts|\.bak$)'` do echo $f mv $f ${f}.bak grep -v 128.252.133.7 ${f}.bak > $f done /etc/init.d/denyhosts start -- Allen P. Rueter 314/935-6429 Camp Box 1045 Bryan Rm 509 ___ ___ ___ Washington University / __|_ _/ __| One Brookings Dr. | (__ | |\__ \ St. Louis MO 63130 \____|_|____/ |