NFREPLAY(1)

๐Ÿ’… NFREPLAY(1) โ€” General Commands Manual โœจ

okay so this is the nfreplay page, from the General Commands Manual section, and bestieโ€ฆ it's literally the glow-up tool for your flow files ๐Ÿฆ‹


โœจ NAME โœจ

nfreplay โ€” replay binary flow files as netflow version v5 or v9 to a remote host ๐Ÿ’Œ


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

nfreplay -r flowfile -H remotehost [-i remotehost] -p port
         [-S Sourceaddr] [-j mcastgroup] [-4] [-6] [-v version]
         [-d usec] [-b buffsize] [-z num] [-c num] [-f filterfile]
         [-t timewin] [-E] [-L logfile] [-Y] [-V] [-h] [filter]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

nfreplay reads binary flow files that any nfdump collector stored, and sends those flow records off to a remote host or a multicast group. it's giving delivery service, no cap ๐Ÿ“ฆ

so like, nfreplay sends the data as netflow v5 or v9 to wherever the remote location is. slay ๐Ÿ’…

and it also accepts a filter to limit which flows actually get sent โ€” the filter syntax is equivalent to nfdump's. same vibes, same syntax, iykyk ๐Ÿ‘‘

the options are as follows, and yes i'm listing every single one because we don't skip ๐Ÿ‘‡


๐Ÿ’– OPTIONS ๐Ÿ’–

  • -r flowfile โ€” read input data from flowfile. that's your source, your origin story, your main character ๐Ÿ“–
  • -H remotehost โ€” send all flows to this remote host. accepts a symbolic name or an IPv4/IPv6 IP address ๐Ÿ›ฐ๏ธ
  • -j mcastgroup โ€” join this multicast group and send all flows to this group host. accepts a symbolic name or multicast IPv4/IPv6 IP address ๐Ÿซ‚
  • -p port โ€” send all flows to this port on the remote side. default is 9995 ๐Ÿšช
  • -S Sourceaddr โ€” use the specified source IP address to send the flows ๐Ÿชช
  • -4 โ€” forces nfreplay to send flows to a IPv4 address only. can be used if the remote host has an IPv4 and an IPv6 address record ๐Ÿ€
  • -6 โ€” forces nfreplay to send flows to a IPv6 address only. can be used if the remote host has an IPv4 and an IPv6 address record ๐Ÿ”ฎ
  • -v version โ€” send flows as netflow version version. versions 5, 9 and 250 are supported. in v5 mode, all additional elements to a standard v5 record are skipped and 64bit counters are truncated to 32bit ๐Ÿ˜ญ (yes, lossy, we said it). version 250 sends flows in nfdump's own native record format, as used between nfcapd and nfpcapd, without any conversion or loss of precision โ€” full fidelity icon behavior ๐Ÿ’Ž. the default is v9 โญ
  • -d usec โ€” delay each record by usec microseconds, to avoid overrun on the remote host. default is 1 microsecond โฑ๏ธ
  • -b buffsize โ€” set send buffer to buffsize size in bytes. useful to buffer larger data transfers ๐Ÿงบ
  • -z num โ€” flows are sent with their "real distribution" across time (with a speed coefficient):
    • -z 1 : 5 minutes of records will be sent in 5 minutes ๐Ÿข
    • -z 20 : 5 minutes of record will be sent in 5/20 = 0.25 minutes ๐Ÿ‡
  • -c num โ€” limit number of records to send to the first num flows โœ‚๏ธ
  • -f filterfile โ€” read the flow filter from filterfile ๐Ÿ“„
  • -t timewin โ€” restrict replay to an nfdump time-window expression โณ
  • -E โ€” enable diagnostic verbosity (equivalent to verbosity level 1) ๐Ÿ—ฃ๏ธ
  • -L facility โ€” log diagnostic output to syslog facility facility instead of stderr ๐Ÿ“
  • -i remotehost โ€” compatibility alias for -H. same thing, different letter, we love a legacy moment ๐Ÿซถ
  • -Y โ€” require confirmation before sending flows. consent check, we stan ๐Ÿ™ˆ
  • -V โ€” print nfreplay version and exit ๐Ÿท๏ธ
  • -h โ€” print help text on stdout with all options and exit ๐Ÿ™‹โ€โ™€๏ธ

๐Ÿ”ฅ EXIT STATUS ๐Ÿ”ฅ

nfreplay returns:

  • 255 โ€” initialization failed ๐Ÿ’€
  • 254 โ€” error in filter syntax ๐Ÿšซ
  • 250 โ€” internal error ๐Ÿ˜ตโ€๐Ÿ’ซ

๐Ÿฆ‹ SEE ALSO ๐Ÿฆ‹

nfcapd(1), nfdump(1) โ€” go read your sisters' pages, bestie, they're iconic too ๐Ÿ‘‘๐Ÿ‘‘


<div>okay that's the whole page!! this build is the Debian one, version string is literally $Mdocdate$, and it lives in section NFREPLAY(1) of the General Commands Manual โ€” so like, cite it properly when you quote it in the group chat ๐ŸŽ€โœจ๐Ÿซถ</div>

๐Ÿ“ฆ where this page comes from
  • epel 10: nfdump 1.7.10-1.el10_3 ยท BSD-3-Clause AND GPL-2.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms