From: Chris Brenton <cbrenton@chrisbrenton.org>
To: netfilter <netfilter@lists.netfilter.org>
Subject: Re: Logging
Date: Thu, 11 Aug 2005 16:54:29 -0400 [thread overview]
Message-ID: <1123793668.2070.198.camel@grendel> (raw)
In-Reply-To: <42FB7394.4010203@krap.dk>
On Thu, 2005-08-11 at 11:49, Svenne Krap wrote:
>
> Is there some way to get netfilter to collect rule hits (like with no -j
> clause) for a each port/ip-address individually within a range ?
> Other than creating thousands of lines of rules and add them to my
> "firewall-startup" script (which is currently slightly less than 80 rules).
Have LogWatch process the /var/log/message file and produce a medium
level detail report. You'll get output similar to the following:
Dropped 603 packets on interface eth3
From 4.78.20.2 - 12 packets to udp(53)
From 12.120.1.21 - 10 packets to
tcp(4355,10045,12579,17520,18552,36906,53249,54319,58702,62703)
From 12.120.1.22 - 9 packets to
tcp(4063,11107,13063,30538,37001,40758,45575,48153,57370)
From 12.130.62.16 - 24 packets to udp(53)
From 60.26.129.15 - 8 packets to
tcp(5554,9898,5554,9898,5554,9898,5554,9898)
From 61.152.167.59 - 4 packets to tcp(22,22,22,22)
From 61.221.58.212 - 4 packets to tcp(22,22,22,22)
From 62.105.6.52 - 1 packet to icmp(0)
You can then further parse it as needed. You don't need a unique log
rule for each port and/or IP. LogWatch will sort it all out for you.
HTH,
Chris
next prev parent reply other threads:[~2005-08-11 20:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-11 15:49 Logging Svenne Krap
2005-08-11 20:54 ` Chris Brenton [this message]
2005-08-12 6:24 ` Logging Grant Taylor
-- strict thread matches above, loose matches on Subject: below --
2004-04-25 15:32 logging IT Clown
2004-04-25 15:45 ` logging Antony Stone
2004-04-12 3:13 logging ip tables
2004-04-01 5:38 logging IT Clown
2004-04-06 10:26 ` logging D. Prima Prayudi
2004-03-31 9:18 logging IT Clown
2004-03-31 9:59 ` logging Mark Page
2004-03-15 15:56 Logging Hurley, Michael
2004-03-15 15:51 Logging Mario Udina
2004-03-15 16:07 ` Logging Frederic de Villamil
2004-03-15 16:08 ` Logging Antony Stone
2004-03-15 16:25 ` Logging Frank Gruellich
2004-03-15 16:36 ` Logging forum
2003-03-24 14:02 logging Philippe Dhont (Sea-ro)
2003-01-14 18:23 Logging Subba Rao
2003-01-16 19:20 ` Logging Athan
2003-01-17 4:26 ` Logging Dharmendra.T
[not found] <20021021210421.79305.qmail@web40702.mail.yahoo.com>
2002-10-21 21:39 ` Logging Antony Stone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1123793668.2070.198.camel@grendel \
--to=cbrenton@chrisbrenton.org \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox