IPFWPCAP(8)
π IPFWPCAP(8) β the ipfwpcap girlies' guide π
okay so this is ipfwpcap, straight out of the System Manager's Manual and honestly? she's iconic. buckle up bestie β¨
πΈ NAME πΈ
ipfwpcap β copy diverted packets to a file in tcpdump format. that's it, that's the whole vibe π
π¦ SYNOPSIS π¦
ipfwpcap [-dr] [-b maxbytes] [-p maxpkts] [-P pidfile] portnum dumpfile
π DESCRIPTION π
so here's the tea β β the ipfwpcap utility is used to copy diverted packets to a file in tcpdump(1) format. the interesting packets get diverted by ipfw(8) to a port that ipfwpcap is listening on (main character energy, honestly). and then β plot twist π β the packets are dropped unless -r is used. like, gone. poof. no cap.
The options are as follows, and yes I'm listing every single one because we don't skip π
-dβ turns on extra debugging messages. she's chatty, she's verbose, she's telling you everything π-rβ writes packets back to thedivert(4)socket. the packets get to live another day π«Ά-rrβ indicates that it is okay to quit ifmaxbytesormaxpktsare reached. heads up though: diverted packets will silently disappear if nothing is listening on thedivert(4)socket π-bmaxbytes β stop dumping after maxbytes bytes. that's the limit, bestie π-pmaxpkts β stop dumping after maxpkt packets. counting every single one β¨-Ppidfile β file to store PID number in. default is/var/run/ipwfpcap.portnr.pidπ
The portnum argument specifies which divert(4) socket port to listen on. The dumpfile argument is the path to the file to write captured packets to. and get this β specify - to write to stdout π
β EXIT STATUS β
The ipfwpcap utility exits 0 on success, and >0 if an error occurs. simple queen behaviour π
π EXAMPLES π
ipfwpcap -r 8091 divt.log &
Starts ipfwpcap as a background job listening to port 8091 and reflecting the packets back to the socket. lowkey obsessed with her π§
ipfw add 2864 divert 8091 ip from 192.0.2.101
Example ipfw(8) rule to divert all packets from 192.0.2.101 to port 8091. See ipfw(8) for details β iykyk π
π₯ SEE ALSO π₯
tcpdump(1), pcap(3), divert(4), ipfw(8) β go read the whole friend group, fr fr π
π HISTORY π
The ipfwpcap utility first appeared in FreeBSD 7.0. a true pioneer π«
π AUTHORS π
ipfwpcap was written by P. Kern <pkern@cns.utoronto.ca>. This manual page was written by Niclas Zeising <zeising@FreeBSD.org>. legends, both of them π
and that's the whole page, bestie, every last crumb of it β not me leaving out a single flag, no cap ππ
mwah π this page is from the Debian edition of the manual, dated May 22, 2006 β a vintage icon serving looks since the mid-aughts πβ¨
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2006 Niclas Zeising <zeising@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms