[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: netstat -an alternatives



On Saturday 12 January 2002 21:11, list3@centerbox.com wrote:
> Hi.
>
> I am trying to create script that would activate when other machines
> connect to certain ports on internet through this machine. This box is
> doing the masquarading.
>
> I tried to use tcpdump, but it does not have any timeout options that I
> need. And besides I just need to see if connection is established. The
> packets might take a while to come in. I need almost immidiate answer.
> I don't need to see the packets just that there is currently a link
> established between a masquaraded machine and a site on internet with a
> specific port#. Sort of like what "netstat -an" does, but looking at
> non-local connections.
>
> Any ideas ?
Have you tried iptables using log as a target 
or even limit and log
or ulog if you feel ambitious.

ipchains also has logging.

Earl F Hampton



Reply to: