Re: iptables anti-nimda anyone?
From: Bill Weiss (houdini@nmt.edu)Date: 09/24/01
- Previous message: Rob 'Feztaa' Park: "Re: iptables anti-nimda anyone?"
- In reply to: Evan Borgstrom: "Re: iptables anti-nimda anyone?"
- Next in thread: Chris Freeze: "RE: iptables anti-nimda anyone?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 23 Sep 2001 21:54:06 -0600 From: Bill Weiss <houdini@nmt.edu> To: focus-linux@securityfocus.com Subject: Re: iptables anti-nimda anyone? Message-ID: <20010923215406.A11890@nmt.edu>
Evan Borgstrom(syntec@unixpimps.org)@Fri, Sep 21, 2001 at 09:17:56AM -0400:
> ------------------------------------------
> #!/bin/sh
>
> # this will read line by line, discard empty entires and log the rest like cronolog
> while read line; do
> content="`echo $line | awk -F'"' '{print $2}'`"
> if [ "$content" != "-" ]; then
> echo $line > /var/log/httpd/`date +%Y-%m-%d`
> fi
> done
> ------------------------------------------
Erm, won't that make the logs 1 line? How about
echo $line >> /var/log/httpd/`date +%Y-%m-%d`
Or similar?
- Previous message: Rob 'Feztaa' Park: "Re: iptables anti-nimda anyone?"
- In reply to: Evan Borgstrom: "Re: iptables anti-nimda anyone?"
- Next in thread: Chris Freeze: "RE: iptables anti-nimda anyone?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]