[Logwatch-Devel] Re: [Logwatch-Announce] Logwatch 4.1 has been released
Sat, 19 Oct 2002 12:28:01 -0700 (PDT)
After taking a quick look, I have a few
1) The search was made more greedy as one of the
reasons the iptables parsing wasn't working in the
first place was that it was too restrictive. The only
thing it really depends on at the moment is the order
in which the elements occur.
2) The only ICMP messages I've seen in my logs are of
this format, which is presumably why it's not working
with yours. The ICMP messages are formatted the same
as everything else is.
Oct 18 15:13:01 tilt kernel: ICMP drop IN=eth0 OUT=
SRC=220.127.116.11 DST=18.104.22.168 LEN=64 TOS=0x00
PREC=0x00 TTL=51 ID=28365 PROTO=ICMP TYPE=8 CODE=0
I'm running RedHat 7.3. Do you have a Linux kernel,
or something else?
3) Right now I parse prefix, in, out, src, dst, proto.
For your case it looks like I need to add some logic
which will catch prefix, in, out, proto, src, dst (and
possibly the square brackets). It's hard to tell
without the full log message.
--- email@example.com wrote:
> oh yeah... i haven't downloaded it yet, but was the
> pattern matching
> fixed for ICMP rejections for iptables kernel
> service? my host is
> mail.airtux.net, but it's been logging failures on
> the INPUT chain
> *from* my host... clearly impossible.
> From mail.airtux.net (22.214.171.124).
> To never.just.net (126.96.36.199).
> Port: domain (udp,eth0,,FAILED INPUT:) - 1
> Total of 1 packet(s).
> if you take a closer look at the class of the actual
> message it contains a
> summary of the original packet that failed bracketed
> with ''. my guess
> is that the search pattern is matching the wrong
> thing (greedy search).
> Oct 13 07:39:05 mail kernel: FAILED INPUT: IN=eth0
> OUT= ... PROTO=ICMP TYPE=3 CODE=3
> [SRC=188.8.131.52 DST=184.108.40.206 LEN=86
> TOS=0x00 PREC=0x00 TTL=47 ID=0 DF PROTO=UDP
> SPT=32768 DPT=53 LEN=46 ]
> On Fri, Oct 18, 2002 at 04:37:24PM -0400, Kirk Bauer
> > This is not a big release, just some cleanup from
> 4.1 and a few
> > enhancements. If you are using 4.X already, I
> would recommend
> > upgrading.
> > - Fixed IP lookup bug in kernel script
> > - Sendmail improvements sent in from Alex K
> > - Just some more cleanup as I wanted to get a new
> stable release out there
> > - Fixed Perl warning in Pluto filter
> > - applied some changes from Eric Gerbier
> <firstname.lastname@example.org> for proftpd filter
> > - Removed use of /bin/date from all scripts
> (thanks Mark D. Nagel <email@example.com>)
> > - Added afpd service filter
> Mark Smith
> mark at winksmith dot com
> mark at tux dot org
> Logwatch-Devel mailing list
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site