From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fernando Subject: Re: Need Help with making a bash script Date: Tue, 01 Jun 2004 09:03:46 -0400 Sender: linux-admin-owner@vger.kernel.org Message-ID: References: <20040529130043.1ac11622@downtown> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20040529130043.1ac11622@downtown> List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: linux-admin@vger.kernel.org Russell Evans wrote: > On Fri, 28 May 2004 17:36:49 -0400 > "Fernando" wrote: > > >>I have two problems. >> >> >>1. I'm making a script to add IP's to my blacklist... >> >>I need to add three , the word 'REJECT' and a #DDMMYYYY that >>it's being done to a text file that has the IP's in it... ie this is >>the original list; >> >>80.25.148.216 >>80.43.197.197 >> >>needs to end up like this... >> >>80.25.148.216 REJECT #28052004 >>80.43.197.197 REJECT #28052004 >> > > > Assuming that you are documenting why you are blocking an address, > instead of the date as a comment, you might was to use a case number. > The case number would point to a record of the event that triggered the > blocking, with the appropriate log files snips, packet traces, machines > effected, ... > > Thank you > Russell > - > To unsubscribe from this list: send the line "unsubscribe linux-admin" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > I was thinking about putting the date in because I was going to clear out IP's after a couple of months. Just in case it was a one time error where they sent out infected email. The case number system sounds interesting, would I need it for CYA for anything?