| BPFLOGD(8) | System Manager's Manual | BPFLOGD(8) |
bpflogd — Berkeley
Packet Filter logging daemon
bpflogd |
[-dPp] [-F
filterfile] [-s
snaplen] [-u
user] [-w
waitms] [-y
datalinktype] -f
filename -i
interface [expression
...] |
bpflogd is a daemon which captures packets
using bpf(4) and writes the packets to a logfile in
tcpdump(8) binary format. These logs can be reviewed later
using the -r option of
tcpdump(8).
When starting up, bpflogd drops privileges
before opening its log file. After receiving a
SIGHUP signal it will write any pending packets to
the log file, close it, and then open it again, permitting
newsyslog(8) to rotate logfiles automatically. If the log
file contains data after being opened, the PCAP header is checked before new
logs are appended to the existing file.
The options are as follows:
-dbpflogd does not daemonise and
logs to the terminal.-f
filename-F
filterfile-i
interface-P-p-s
snaplenbpflogd captures whole
packets.-u
userbpflogd drops privileges to the _pflogd user.-w
waitms-y
datalinktypeA filter expression may only be specified by a file with -F or as arguments on the command line; specifying both is unsupported. If a filter is not provided then all packets are captured.
The bpflogd command appeared in
OpenBSD 7.8.
| May 16, 2025 | Debian |