I just tossed together a quick top-like monitoring script for your pf
firewalls.  It displays the output of "pfctl -s info" at one second
intervals (by default).  It does not accept any user input... just
ctrl-C to quit.

Enjoy!
-J.

Usage:
pftop [delay in seconds]

Script:
#!/usr/bin/perl

my $delay = $ARGV[0];
$delay = int($delay) || 1;

while (1) {
        system("clear");
        print "PFtop v 1.0 - J.Dixon - 2002.11.16\n";
        system("pfctl -s info");
        sleep $delay;
}
#EOF



Reply via email to