Le Mercredi 15 Novembre 2006 01:40, vous avez écrit :
> Hi,
>

First i wrote this script (name clam-ip-drop.sh)

#! /bin/sh

ip=`cat /var/log/httpd/error_log | grep "virus daemon" | cut -d " " -f8-8 | 
cut -d "]" -f1-1`;
date=`date`;

for i in $ip ; do
        echo $date." Drop de l'IP : "$i >> /var/log/messages;
        /sbin/iptables -I INPUT -s $i -j DROP;
done

But the rule in clamd.conf seams not execute !???
VirusEvent /path/of/prog/clam-ip-drop.sh

The prog is executable by other !
_______________________________________________
http://lurker.clamav.net/list/clamav-users.html

Reply via email to