|
NAMEipfwpcap —
copy diverted packets to a file in tcpdump format
SYNOPSIS
DESCRIPTIONTheipfwpcap utility is used to copy diverted packets to
a file in
tcpdump(1)
format. The interesting packets are diverted by
ipfw(8) to
a port on which ipfwpcap listens. The packets are then
dropped unless -r is used.
The options are as follows:
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. Specify
‘ EXIT STATUSTheipfwpcap utility exits 0 on success,
and >0 if an error occurs.
EXAMPLESipfwpcap -r 8091 divt.log
& Starts 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. SEE ALSOtcpdump(1), pcap(3), divert(4), ipfw(8)HISTORYTheipfwpcap utility first appeared in
FreeBSD 7.0.
AUTHORSipfwpcap was written by P. Kern
<pkern@cns.utoronto.ca>.
This manual page was written by Niclas Zeising
<zeising@FreeBSD.org>.
Visit the GSP FreeBSD Man Page Interface. |