IT lexicon › Security › pflog

pflog

Security På svenska → Updated: 2026-11-09

pf's logging, which writes no text lines at all but sends logged packets to a fake network interface — so you read your firewall log with tcpdump.

A pf rule with the log keyword copies matching packets to the pseudo-interface pflog0, wrapped in an extra header recording the rule number, action and interface. The pflogd daemon listens there and writes everything in pcap format to /var/log/pflog.

The format is the whole point. Instead of a bespoke log syntax that every tool has to learn, you run tcpdump -n -e -ttt -r /var/log/pflog, or tcpdump -i pflog0 for live traffic, and get the same filter expressions as for any other capture. The catch is that you can't grep it, which every new OpenBSD admin discovers on the first attempt.

← Back to the lexicon