[Dshield] Better Perl script (iptables)

Stephen L Fowler slfowler at visto.com
Tue Aug 28 11:21:55 GMT 2001


I had the same problem.  The problem is that your system doesn't or hasn't rolled over /var/log/messages to /var/log/messages.1. 
The following should fix the problem.

> Can't call method "ctime" on an undefined value at ./dshield_iptables.pl
> line 122.
> 
> lines 120-125:

 if ( -e $rolllogfile ) {
> 120> $roll_date = 0;
> 121> $stat=stat($rolllogfile);
> 122> $roll_date=$stat->ctime;
> 123> if ($roll_date >= $last_date) {
> 124>        parselog ($rolllogfile, $last_date, $tmp);
> 125> }
 }

SteveF
___________________________________________________________________________
Visit http://www.visto.com.
Find out  how companies are linking mobile users to the 
enterprise with Visto.




More information about the list mailing list