I would like to append offending IPs to a csv list with the same data that is sent by cpHulkd warning emails so that I can later import offenders.csv in excel, sort it and report the abuse. Has anyone tried that? I would put the command in the cphulk interface for when an ip ban is triggered.
I was thinking something like this but I lack knowledge of the proper variable names, if they exist at all...
I would also like to rotate the log file each month, but no clue as how to do that...
Thanks in advance!
I was thinking something like this but I lack knowledge of the proper variable names, if they exist at all...
echo "$TRIGGER_TIME;$IP;$ISP;$REVERSE_DNS" >> /root/offenders.csv
I would also like to rotate the log file each month, but no clue as how to do that...
Thanks in advance!