OpenBSD Journal

A pf statistics web tool!

Contributed by jose on from the info-gathering dept.

panda writes: "As seen on the tech@ mailing-list, the people at just released a pf statistic tool, using a web interface.

It looks very promising if you want to have a better view of what goes in and out of your network, it might also help administrators find out where bottlenecks and wrongly behaving users can be found at.

On a side note, it does feature a clean web interface with nice graphics, check it out at: "

(Comments are closed)

  1. By Sacha () on

    IMHO: it would be nice to kill active connections with it.

    But sure looks nice for further use :D

  2. By Anonymous Coward () on

    Wow, this is sweet!

  3. By Anonymous Coward () on

    Holy crap, this is excellent.

    This tool just sent my PF usage to the next level of usefulness! :)

  4. By Anonymous Coward () on

    Can this generate any non-web-based reporting? Most firewall boxes won't be running Apache/PHP.

    1. By Anonymous Coward () on

      You mean logfiles ? Don't really see the point in that.

  5. By Teedo () on

    This appears to be bogus. I downloaded this yesterday after having it announced on the mailing list. The index.php file has hardcoded statistics and several *.php files are missing that are linked from the menu bar. The only functional aspect to this appeared to be the rule generator, which didn't seem to do anything but print rules to the screen (it did not actually maintain your configuration file). Also, why are the RFC reference docs *.php files if they don't have any PHP code to execute? The ethernet Mac hardware manufacturer database was okay, but one of the php scripts looks like it loads the whole fucker into memory and parses it using some simple string comparisons.

    It also had some pages that would do a "tail -200" on some of your log files and display that.

    I forgot... What is this app actually supposed to do other than make an ass out of whomever installs it?

    1. By Anonymous Coward () on

      Glad you volenteered to help fix and improve this product. Without people like you, we'd only get criticism and no one to help.

      When are you going to release 1.1 or 2.0 from the way you're describing things. Or could you send me the patches in the meanwhile?

      email me: root@localhost


    2. By Anonymous Coward () on

      Forgot to say... Before you go making an ass out of yourself again, why not read from his page:


      Please send any suggestions, comments, flames to metacortex(at)

      Maybe you can turn your pointless criticism into something of constructive value?

      Or maybe help fix things rather than just nag like an old lady.

    3. By Someone with more of a clue than Teedo () on

      If you had bothered to look at the shell scripts for more than the two seconds that were simply an interruption of your 5 star beat off session, you would have realized that you should have kept your hands in your pants instead of using your keyboard.

    4. By Howard Owen () on

      Unpack it in /var/www, NOT /var/www/htdocs. The run the script in /var/www/metacortex. The script will create /var/www/htdocs/metacortex and pupulate it with files containing a snapshot of your pflog.

  6. By StatiK76 () on

    lame. Err - What does it do other than display standard pfctl -s information?

    meh - its faster to type.


    1. By JFS () on

      This thing is completly broken and even in simple deny or pass rules give syntax errors... please guys work a little more before post this project out!

      PS: and when I try to email the "metacortex" the 3 addresses on the site return delivery errors!!!

      1. By Howard Owen () on

        Try metacortex@secureoffice. net

      2. By Howard Owen () on


  7. By Tamer Sahin () on

    In fact, I can't tell that Metacortex is a software that has been programmed with supreme
    programming skills. It has been written for users, such as me, who have great need on
    PF monitoring to overcome such requirements. If the software is exracted to the default
    (/var/www/metacortex) directory and there if the build script is run, then, including
    all php scripts and links, there will be no problem at all. For sure, there are mistakes
    and miscodings that i couldn't see. If these kind of bugs are reported to me, they will, for
    surely, be fixed in the sortest terms.

    If there is an intention of you to help the project step further, we can contribute to
    the project together. Not decreasing the value of the help, I believe that with the
    power of programmers such as you, we can make major changes on the structure of the
    project and make it function better.

    There has been some fixes on the initial release of Metacortex, I will apply them to
    the software and will release it under the version; Metacortex v1.0.1. the changes
    are ranged below:

    - Misspelled words fixed 'Rule Generator' and 'README'.
    - Local status page outputs now more formatted.
    - Useless full paths removed from build scripts.
    - Fixed 'Local Status' Cross site scripting bug.
    - Files permissions now more restrictive.
    - Build scripts completely revised. (Thanks contribution & suggestions for Dom De Vitto)

    Please, do not hesitate to send your recommendations and warnings about Metacortex. They will be welcomed >

    1. By Howard Owen () on

      This I do not like, in

      /bin/chmod 644 /var/log/daemon

      /bin/chmod 644 /var/log/authlog

  8. By Howard Owen () on

    Specifically, /var/log/daemon and /var/log/authlog (!)

    since apache runs as www, I can see the rationale, but doing that without big, red warning signs is very bad!

    The code is in Do a grep for'chmod'.

  9. By Tamer Sahin () on

    * Metacortex v1.0.1 * 15 December 2003 *

    + What is Metacortex?

    Metacortex consists of a PF graphical user interface. Built on the proactively secure OpenBSD operating system, and
    featuring an HTML based graphic interface for easy monitoring.

    + Features

    * PF Statistics; active connections, current ruleset.
    * TCP, UDP, ICMP based PF log analysis.
    * Local System Status; process, uptime, vm stats.
    * Web based PF rule generator.
    * Reference Library; Many important RFC's, MAC ID query, port query, ip & domain whois.
    * System Log View.

    + Changelog v1.0 to v1.0.1

    - Misspelled words fixed 'Rule Generator' and 'README'.
    - Local status page outputs now more formatted.
    - Useless full paths removed from build scripts.
    - Fixed 'Local Status' Cross site scripting bug.
    - Files permissions now more restrictive.
    - Build scripts completely revised.
    - Fixed 'Rule Generator' port ranges bug.
    - Fixed 'Rule Generator' blocking bugs.
    - Fixed 'Rule Generator' redirect bugs.
    - Fixed 'Rule Generator' keep/modulate state bugs.
    - Fixed many 'Rule Generator' javascript bugs.
    - Logs are arranged in order newer through old in TCP, UDP, ICMP and Other logs.

    + Contact

    Please send any suggestions, comments, flames to metacortex(at)

    + Download

    1. By morpheus () on

      Seems the web site is down/blank for the past day or so. Any ideas where I might find out more info about this?

  10. By Chris Owen () on

    Firstly, thanks for writing this software and offering to share it with us all.

    I have some suggestions that would make the product more useful to me and possibly others.

    1) More statistics to help isolate where rules need to be tweaked would be of more help.
    a) percentages of tcp, udp and icmp packages dropped compared to the whole.
    b) percentages of icmp types compared to all icmp
    c) percentages of tcp type dropped (RST, SYN, ACK, etc.) compared to all tcp
    d) percentages of fragments compared to all or number of fragments dropped
    e) tcp packets dropped broken down by port
    f) udp packets dropped broken down by port
    2) on each of these statistics pages, the ability to click on a link so that those packets which triggered the statistics.
    3) breakdown by source or destination ports
    4) statistics for what times the most packets are being dropped (mrtg)
    5) statistics for when traffic is occuring (mrtg)

    An emphasis on tweaking the current ruleset would be most useful.

    I can help you with some of this if you'd like. Send me an email if you're interested.


Latest Articles


Copyright © - Daniel Hartmeier. All rights reserved. Articles and comments are copyright their respective authors, submission implies license to publish on this web site. Contents of the archive prior to as well as images and HTML templates were copied from the fabulous original with Jose's and Jim's kind permission. This journal runs as CGI with httpd(8) on OpenBSD, the source code is BSD licensed. undeadly \Un*dead"ly\, a. Not subject to death; immortal. [Obs.]