[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Statistics on individual table entries...
- To: Forrest Aldrich <forrie_(_at_)_forrie_(_dot_)_com>
- Subject: Re: Statistics on individual table entries...
- From: Daniel Hartmeier <daniel_(_at_)_benzedrine_(_dot_)_cx>
- Date: Tue, 29 Nov 2005 10:07:30 +0100
- Cc: freebsd-pf_(_at_)_freebsd_(_dot_)_org
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