[motd.ca]  pfcoll

pfcoll - pf log collector

My firewall doesn't have the horsepower for Snort. And I don't really care about the vast majority of traffic I block (although I do summarize my pflog daily). But I do want quick notification of certain traffic: especially suspicious outbound traffic. So this is my solution for myself: listen to what pf logs, and mail me a note when it logs certain things.

FEATURES

DEFICIENCIES

DOWNLOAD

SOME EXAMPLES

Run as a daemon; send mail to root for events:

    pfcoll -m root

Run as a daemon; send mail to root for outbound packets that are blocked:

    pfcoll -m root outbound and action block

Run as a daemon; listen to the fxp0 interface for traffic on port 443, and send mail to root about it:

    pfcoll -i fxp0 -m root port 443

Run in the foreground, verbose logging to stderr, report events that match pf rule number 5 on the interface ep1:

    pfcoll -D rulenum 5 and on ep1

Run pfcoll as user _pfcoll:

    pfcoll -u _pfcoll -m root outbound and action block

Run pfcoll as a general log reporter:

    tail -f /var/log/authlog | grep 'sshd.*Failed' | pfcoll -s -m root &