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

Re: Statistics on individual table entries...



On Tue, Nov 29, 2005 at 03:56:34AM -0500, Forrest Aldrich wrote:

> In PF, I am trying to determine how to accomplish similiarly.  The command:
> 
>    pf -vvs Tables
> 
> Provides summaries only.  I don't see a way to accomplish the above.

Additional per-table counters can be printed with

  pfctl -t foo -vvTs

There's no 'last-matched timestamp', however.

Depending on what you need it for (like, purge entries that haven't been
used for a period of time), you could work around that by clearing the
packet/byte counters (representing the packets that were matched by
rules using the tables) and regularly remove those that show zero values
(unused since last invokation of that clearing script).

Daniel
_______________________________________________
freebsd-pf_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscribe_(_at_)_freebsd_(_dot_)_org"



Visit your host, monkey.org