TRAFSHOW(1)

TRAFSHOW πŸ’…βœ¨

okay bestie, so this is a General Commands Manual page for a lil program called trafshow, and it's genuinely one of the cutest ways to watch your network be alive. Section 1, general commands, let's GO πŸ¦‹


✨ NAME ✨

trafshow β€” full screen show network traffic πŸ‘‘

πŸŽ€ SYNOPSIS πŸŽ€

trafshow [-vpnb] [-a len] [-c conf] [-i name] [-s str] [-u port] [-R
refresh] [-P purge] [-F file | expr]

🌸 DESCRIPTION 🌸

So TrafShow is this simple interactive program that gathers network traffic from all the libpcap-capable interfaces, stacks it up in a memory cache, and then β€” separately, like its own whole moment β€” displays it in the appropriate curses window. And the way it displays it?? In a line-narrowed manner, as a list of network flows sorted by throughput. It's giving live show. It's giving main character. ✨

Display updates happen nearly in real time, asynchronously from the data collecting. Basically it looks like a live show of traffic flows, hence the name, iykyk. And every kind of network traffic gets mixed together into that one live-show screen β€” Ethernet, IP, etc. no segregation, we're all fam here πŸ’–

Hint: Please press H key inside a show to get brief help! 🫢

The IP traffic can be aggregated by netmask prefix bits and service ports, which reorganizes a whole heap of trivial little flows into treelike hierarchies that a human brain can actually perceive. You can glance over the list of resulting flows and select one to browse in detail. So you can deepen into the traffic inheritance hierarchy and inspect the packets of each trivial flow in a variety of presentations: raw-hex, ascii, time-stamp. Obsessed.

The program makes aggregation automatically when the number of flows exceeds some reasonable amount. Just a few seconds after launch may be required for adaptation to your volume of traffic β€” it's just settling in, give her a sec. Use the -a len option (see below bestie) to overwrite the default behaviour.

TrafShow also listens on a UDP port (9995 by default) for diverse feeders of Cisco Netflow, and then separately displays the collected data in the same manner as described above. The following versions of Netflow are currently supported: V1, V5, V7. Use the -u port 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! So do not come for her with your invoicing needs, she will not deliver. πŸ’€

The program pretend to be IPv6 compatible and ready to using, but it is not tested enough. You can define INET6 to do so.


πŸ’œ OPTIONS πŸ’œ

  • -v β€” Print detailed version information and exit. That's it, that's the whole vibe. πŸ‘‹
  • -p β€” Do not put interface(s) into promiscuous mode. (She'll keep it classy and only listen to what's hers.)
  • -n β€” Do not convert numeric values to names (host addresses, port numbers, etc.). This mode can be toggled On/Off during a show by pressing the N key. πŸ”’
  • -b β€” To place a backflow entries near to the main streams in the sorted list of traffic flows.
Note: this mode can raise the system load dangerously high because it take a lot of CPU cycles! 😭 like genuinely bestie, be careful.
  • -a len β€” To aggregate traffic flows using IP netmask prefix len. This option also turn on service ports aggregation. The len expected as number of bits in the network portion of IP addresses (like CIDR). The aggragation len can be changed during a show by pressing the A key, and turned Off by empty string.
Hint: Please use 0 to reduce output just for network services.
  • -c conf β€” Use alternate color config file instead of default /etc/trafshow. Customize your whole aesthetic, slay. 🎨
  • -i name β€” Listen on the specified network interface name. If unspecified, TrafShow collect data from all network interfaces, configured UP in the system. In the last case the system must supply enough number of packet capture devices (like /dev/bpf#).
  • -s str β€” To search and follow for list item matched by string, moving the cursor bar. The found item try to stay highlighted. πŸ‘€ The mode can be turned Off by Ctrl-/ key press or [re]entered again by / key directly in the live show.
  • -u port β€” Listen on the specified UDP port number for the Cisco Netflow feed. The default port number is 9995.
Hint: Please use 0 to disable this functionality.
  • -R refresh β€” Set the refresh period of data show to seconds, 2 seconds by default. This option can be changed during a show by pressing the R key. ⏱️
  • -P purge β€” Set the expired data purge period to seconds, 10 seconds by default. This option can be changed during a show by pressing the P key. 🧹
  • -F file β€” Use file as input for the filter expression.
  • expr β€” Select which packets will be displayed. If no expression is given, all packets on the net will be displayed. Otherwise, only packets for which expr is true will be displayed. The filter expression can be changed during a show by pressing the F key, and turned Off by empty string. Please see tcpdump(1) man page for syntax of filter expression. πŸ“–

πŸ¦‹ FILES πŸ¦‹

  • /etc/trafshow β€” The default colors configuration file if any.
  • $HOME/.trafshow β€” The personal file with the user defined colors. Your own lil aesthetic corner, periodt. πŸ’…

🌈 COLORS 🌈

If TrafShow has been compiled with modern curses libraries such as Slang or Ncurses, 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). We love a self-sufficient queen. ✨

The syntax of TrafShow color configuration file as follow:

  • default fcolor:bcolor β€” Set the default screen background color-pair.
  • port[/proto] fcolor:bcolor β€” Set color pattern by service port.
  • [proto] src[/mask][,port] dst[/mask][,port] fcolor:bcolor β€” Set color pattern by pair of source and destination addresses.

The tokens *, any, or all matchs ANY in the pattern. Where fcolor is foreground color and bcolor is background color. 🌸

The fcolor and bcolor may be one of the following:

  • black red green yellow blue magenta cyan white β€” It posible to indicate color as number from 0 to 7.

The upper-case Fcolor mean bright on. The upper-case Bcolor mean blink on. βœ¨πŸ’«


πŸ”₯ SEE ALSO πŸ”₯

pcap(3), tcpdump(1), bpf(4)


πŸ’– ACKNOWLEDGEMENTS πŸ’–

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 patches. Legends, all of them, no cap. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Vladimir Vorobyev <bob(at)turbo.nsk.su>.


πŸ’€ BUGS πŸ’€

Depending of traffic volume, TrafShow can take a lot of CPU cycles and memory. She's hungry, it's fine.

It is impossible to use packet matching expressions in the NetFlow mode. So don't try it bestie, it will not work, fr fr. 😭


and that's the whole page!! 🌸 this was May 2004, TRAFSHOW(1), so yes she's been serving looks since 2004 and she still eats πŸ’…βœ¨ love that for her 🫢

πŸ“¦ where this page comes from