From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,bdccf5d7e2dfa88d X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,bdccf5d7e2dfa88d X-Google-Attributes: gid1020c6,public X-Google-ArrivalTime: 1995-01-18 08:58:03 PST Path: nntp.gmd.de!newsserver.jvnc.net!news.cac.psu.edu!news.pop.psu.edu!hudson.lm.com!godot.cc.duq.edu!ddsw1!news.cic.net!locust.cic.net!pauls From: pauls@locust.cic.net (Paul Southworth) Newsgroups: comp.unix.osf.osf1,comp.unix.admin Subject: Re: Looking for /etc/services port monitoring tool Date: 18 Jan 1995 16:58:03 GMT Organization: CICNet, Inc. Message-ID: <3fjhar$lkn@spruce.cic.net> References: <3fhdvs$74r@longtail.ibl.bm> NNTP-Posting-Host: locust.cic.net Xref: nntp.gmd.de comp.unix.osf.osf1:7286 comp.unix.admin:24929 In article <3fhdvs$74r@longtail.ibl.bm>, Neil Movold wrote: > I have a need to keep statistics on how many times a service port has been >hit. For example, I would like to know how many times a POP3 or FTP port session has >been made on a particular machine. Any suggestions would be appreciated. Just run tcp wrapper on it with no access control (unless desired). Set a syslogd facility in the tcp wrapper makefile, and log that. You can even specify different log facilities for different services, and log at *.info for the tcp wrapper connection data. Compiling a report of connections should take you about four lines of awk or perl and you can run it nitely in cron. tcp wrapper is on ftp.cert.org:/pub/tools/tcp_wrappers --Paul