.TH TRAFSHOW 1 "May 2004"
trafshow - full screen show network traffic
[\fB-F\fP \fIfile\fP | \fIexpr\fP]
is a simple interactive program that gather the \fBnetwork traffic\fP from
all libpcap-capable interfaces to accumulate it in memory cache, and then
separately display it on appropriated curses window in line-narrowed manner
as a list of network flows sorted by throughput. Display updates occurs
nearly in real time, asynchronously from the data collecting. It look like
a \fBlive show\fP of traffic flows. Any kind of network traffic are mixed
together in the one live-show screen, an Ethernet, IP, etc.
\fBHint\fP: Please press `\fBH\fP' key inside a show to get brief help!
The IP traffic can be \fBaggregated\fP by netmask prefix bits and service
ports to reorganize a heap of trivial flows into the treelike hierarchies
suitable for human perception. The user can glance over the list of resulting
flows and select at their to browse detail. So you can deepen into the traffic
inheritance hierarchy and inspect the packets of each trivial flow in variety
of presentations: raw-hex, ascii, time-stamp.
The program make aggregation automatically when number of flows will exceed
some reasonable amount. Just a few seconds after launch may be required for
adaptation to your volume of traffic.
Use \fB-a\fP \fIlen\fP option (see below) to overwrite the default behaviour.
also listens on UDP port (9995 by default) for diverse feeders of \fBCisco
Netflow\fP and then separately display the collected data in the same manner
as described above. The following versions of Netflow are currently supported:
V1, V5, V7.
Use \fB-u\fP \fIport\fP option (see below) to overwrite the default behaviour.
This program may be found wonderful at lest to locate suspicious traffic on
the net very quickly on demand, or to evaluate real time traffic bandwidth
utilization, in a simplest and convenient environment. But it is not intended
for collecting and analysis of the network traffic for a long period of time,
nor for billing!
The program pretend to be IPv6 compatible and ready to using, but it is not
tested enough. You can define INET6 to do so.
Print detailed version information and exit.
Do not put interface(s) into promiscuous mode.
Do not convert numeric values to names (host addresses, port numbers, etc.).
The mode can be toggled On/Off during a show by pressing the `\fBN\fP' key.
To place a backflow entries near to the main streams in the sorted list of
\fBNote\fP: this mode can raise the system load dangerously high because it
take a lot of CPU cycles!
To aggregate traffic flows using IP netmask prefix \fIlen\fP. This option
also turn on service ports aggregation. The \fIlen\fP expected as number of
\fBbits\fP in the network portion of IP addresses (like CIDR).
The aggragation \fIlen\fP can be changed during a show by pressing the
`\fBA\fP' key, and turned Off by empty string.
\fBHint\fP: Please use \fI0\fP to reduce output just for network services.
Use alternate color \fIconfig file\fP instead of default \fI/etc/trafshow\fP.
Listen on the specified network interface \fIname\fP.
If unspecified, \fBTrafShow\fP collect data from \fIall\fP network interfaces,
configured \fBUP\fP in the system. In the last case the system must supply
enough number of packet capture devices (like /dev/bpf#).
To search and follow for list \fBitem\fP matched by \fIstring\fP, moving the
cursor bar. The found \fBitem\fP try to stay highlighted. The mode can be
turned Off by `\fBCtrl\fP-\fB/\fP' key press or [re]entered again by `\fB/\fP'
key directly in the live show.
Listen on the specified UDP \fIport\fP number for the \fBCisco Netflow\fP feed.
The default port number is \fI9995\fP.
\fBHint\fP: Please use \fI0\fP to disable this functionality.
Set the \fBrefresh period\fP of data show to \fIseconds\fP, \fI2\fP seconds by
default. This option can be changed during a show by pressing the `\fBR\fP' key.
Set the expired data \fBpurge period\fP to \fIseconds\fP, \fI10\fP seconds by
default. This option can be changed during a show by pressing the `\fBP\fP' key.
Use \fIfile\fP as input for the \fBfilter expression\fP.
Select which packets will be displayed. If no \fIexpression\fP is given,
all packets on the net will be displayed. Otherwise, only packets for
which \fIexpression\fP is `true' will be displayed.
The \fBfilter expression\fP can be changed during a show by pressing the
`\fBF\fP' key, and turned Off by empty string.
Please see \fBtcpdump\fP(1) man page for syntax of \fBfilter expression\fP.
The default colors configuration file if any.
The personal file with the user defined colors.
If \fBTrafShow\fP has been compiled with modern curses libraries such as
\fBSlang\fP or \fBNcurses\fP it been able to show colored traffic on the
color-capable terminal. Hopefully, no special actions required to install
them because your system has it by default (leastwise last years).
The syntax of \fBTrafShow\fP color configuration file as follow:
Set the default screen background color-pair
Set color pattern by service port
[\fIproto\fP] \fIsrc\fP[\fB/\fP\fImask\fP][\fB,\fP\fIport\fP] \fIdst\fP[\fB/\fP\fImask\fP][\fB,\fP\fIport\fP] \fIfcolor\fP\fB:\fP\fIbcolor\fP
Set color pattern by pair of source and destination addresses
The tokens \fI*\fP, \fIany\fP, or \fIall\fP matchs \fBANY\fP in the pattern.
Where \fIfcolor\fP is foreground color and \fIbcolor\fP is background color.
The fcolor and bcolor may be one of the following:
.I black red green yellow blue magenta cyan white
It posible to indicate color as number from 0 to 7.
The upper-case \fIF\fPcolor mean \fBbright on\fP.
The upper-case \fIB\fPcolor mean \fBblink on\fP.
.SH SEE ALSO
pcap(3), tcpdump(1), bpf(4)
Thanks to Van Jacobson <van(at)helios.ee.lbl.gov> and
Steven McCanne <mccanne(at)helios.ee.lbl.gov>,
all of Lawrence Berkeley Laboratory,
University of California, Berkeley.
Special thank to Jun-ichiro itojun Hagino <itojun(at)iijlab.net> for IPv6
Vladimir Vorobyev <bob(at)turbo.nsk.su>.
Depending of traffic volume, \fBTrafShow\fP can take a lot of CPU cycles and
It is impossible to use packet matching \fBexpressions\fP in the NetFlow mode.