[netflow-tools] Making flows expire

Michael W. Lucas mwlucas at blackhelicopters.org
Mon Sep 25 22:53:41 EST 2006


On Mon, Sep 25, 2006 at 01:40:33PM +1000, Damien Miller wrote:
> On Sun, 24 Sep 2006, Michael W. Lucas wrote:
> 
> > I'd like to have softflowd expire each flow after 300 seconds, and
> > restart with a new flow.  Yes, this is rather dumb, I know, but I can
> > reassemble these flows more easily than I can explain problems with
> > the pictures.
> > 
> > One thought that comes to mind is to do a softflowctl expire-all every
> > five minutes, but this strikes me as rather brute-force.  Is there a
> > cleaner way to do this, or am I just stuck with using an ugly hack to
> > implement my ugly requirements?
> 
> You can set the "maxlife" timeout to achieve exactly this:
> 
> > maxlife
> >     This is the maximum lifetime that a flow may exist for.  All
> >     flows are forcibly expired when they pass maxlife seconds.  To
> >     disable this feature, specify a maxlife of 0.
> 
> so, "softflowd -tmaxlife=300 ..." should do what you want.

You know, I must be blind.  

Thank you for reading the man page at me.  :-)

==ml

-- 
Michael W. Lucas	mwlucas at FreeBSD.org, mwlucas at BlackHelicopters.org
		http://www.BlackHelicopters.org/~mwlucas/
	    Latest book: PGP & GPG -- http://www.pgpandgpg.com
"The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur



More information about the netflow-tools mailing list