iptables log analysis

m.w.chang mwchang
Mon May 17 11:37:55 PDT 2004


anyone got an *existing* script that could list
the ports being blocked by iptables in /var/log/messages
plus the number of hits. like this:

# chkhit /var/log/messages
port,hits
25,10
139,1
6112,20
#

sorting is not important.

I think I need to use perl if I am to write one.
can I do it with bash+utils only?

-- 
  Swiftly. Silently. Invisibly.  .~.   In Linux we trust.
                                / v \
  news://news.hkpcug.org       /( _ )\  http://www.linux-sxs.org
                                 ^ ^



More information about the Linux-users mailing list