FLOW-FANOUT(1)

πŸ“¦ version 0.68.5.1, in fedora 43, fedora 44

🌸 FLOW-FANOUT πŸ’…

okay bestie, gather round, because this is the flow-fanout manual page and it's literally the group-chat relay of the Unix networking world. she's a flow-tools girlie and her whole personality is: take flows, copy them, send them everywhere. fanout (replicate) flow exports to many destinations. no cap.


✨ SYNOPSIS ✨

flow-fanout [ -h ]  [ -A AS0_substitution ]  [ -d debug_level ]  [ -f
filter_fname ]  [ -F filter_definition ]  [ -m privacy_mask ]  [ -p
pidfile ]  [ -s ]  [ -S stat_interval ]  [ -V pdu_version ]  [ -x
xmit_delay ]  localip/remoteip/port localip/remoteip/port...

πŸ¦‹ DESCRIPTION πŸ¦‹

so the tea is this: the flow-fanout utility will replicate flows arriving on localip/remoteip/port to destination(s) specified by localip/remoteip/port. that's it, that's the whole job. she's a copy-paste queen and she ate. πŸ’…

flows processed by multiple exporters will be mixed into a single output stream. this functionality appeared to support Cisco Catalyst exports and may have other uses. (iykyk. she's versatile. she contains multitudes. πŸŽ€)

heads up bestie: a SIGQUIT or SIGTERM signal will cause flow-fanout to exit. so like… be nice to her. 😭

πŸ’– OPTIONS πŸ’–

  • -A AS0_substitution β€” Cisco's NetFlow exports represent the local autonomous system as 0 instead of the real value. this option can be used to replace the 0 in the export with the a configured value. unfortunately under certain configurations AS 0 can also represent a cache miss or non forwarded traffic so use with caution. not me being honest about the vibes. πŸ™ˆ
  • -d debug_level β€” Enable debugging. spill the diagnostics, girl. πŸ”
  • -f filter_fname β€” Filter list filename. Defaults to /etc/flow-tools/cfg/filter. she lives there fr fr.
  • -F filter_definition β€” Select the active definition. Defaults to default. the default default. iconic.
  • -h β€” Display help. when in doubt, ask her. 🫢
  • -m privacy_mask β€” Apply privacy_mask to the source and destination IP address of flows. For example a privacy_mask of 255.255.255.0 would convert flows with source/destination IP addresses 10.1.1.1 and 10.2.2.2 to 10.1.1.0 and 10.2.2.0 respectively. blur the last octet, protect the girlies. πŸ•ΆοΈ
  • -p pidfile β€” Configure the process ID file. Use - to disable pid file creation. no pid, no problem.
  • -s β€” Spoof the source IP address. If the IP address is 0 then it is replaced with the exporter source IP. she's wearing a little disguise ✨
  • -S stat_interval β€” When configured flow-fanout will emit a timestamped message on stderr every stat_interval minutes indicating counters such as the number of flows received, packets processed, and lost flows. progress updates, because we love a check-in. πŸ“Š
  • -V pdu_version β€” Use pdu_version format output. the whole menu, bestie:
    • 1 β€” NetFlow version 1 (No sequence numbers, AS, or mask)
    • 5 β€” NetFlow version 5
    • 6 β€” NetFlow version 6 (5+ Encapsulation size)
    • 7 β€” NetFlow version 7 (Catalyst switches)
    • 8.1 β€” NetFlow AS Aggregation
    • 8.2 β€” NetFlow Proto Port Aggregation
    • 8.3 β€” NetFlow Source Prefix Aggregation
    • 8.4 β€” NetFlow Destination Prefix Aggregation
    • 8.5 β€” NetFlow Prefix Aggregation
    • 8.6 β€” NetFlow Destination (Catalyst switches)
    • 8.7 β€” NetFlow Source Destination (Catalyst switches)
    • 8.8 β€” NetFlow Full Flow (Catalyst switches)
    • 8.9 β€” NetFlow ToS AS Aggregation
    • 8.10 β€” NetFlow ToS Proto Port Aggregation
    • 8.11 β€” NetFlow ToS Source Prefix Aggregation
    • 8.12 β€” NetFlow ToS Destination Prefix Aggregation
    • 8.13 β€” NetFlow ToS Prefix Aggregation
    • 8.14 β€” NetFlow ToS Prefix Port Aggregation
    • 1005 β€” Flow-Tools tagged version 5
  • -x xmit_delay β€” Configure a microsecond transmit delay between packets. This may be necessary in some configurations to prevent a transmit buffer overrun. she's pacing herself. self-care. 🧚

🌈 EXAMPLES 🌈

Replicate flows arriving to local IP address 10.0.0.1 from the router exporting with IP address 10.1.1.1 on port 9500 to localhost port 9500 and 10.5.5.5 port 9200. The exports sent to 10.5.5.5 will be sent with a source IP address of 10.0.0.5 which must be a valid local IP address.

flow-fanout 10.0.0.1/10.1.1.1/9500 0/0/9500 10.0.0.5/10.5.5.5/9200

look at her go. one command, two destinations, zero drama. 🫢


πŸ’€ BUGS πŸ’€

NetFlow exports do not contain the exporter IP address inside the payload so the original exporter IP address (typically a router) will be lost when using flow-fanout. A work around for this protocol limitation is to use local IP aliases and the localip option. When the spoofing option is used multiple exporters with different IP addresses will share the same sequence number but will have the original source IP. Fixing this requires per source : destination sequence number mapping. It is much easier to just use multiple instances of flow-fanout running on different ports. (aka: when in doubt, run more of her. she's happy to clone herself. πŸ‘‘)


πŸ‘‘ AUTHOR πŸ‘‘

Mark Fullmer <maf@splintered.net>


πŸŽ€ SEE ALSO πŸŽ€

flow-tools(1)


okay that's the whole page, bestie, you're officially fluent. this lil legend is from flow-tools and the version on the tin is dated 26 Август 2010 (that's the day she dropped, and honestly she still eats). mwah, go replicate responsibly. πŸ’–βœ¨πŸ¦‹πŸŒΈπŸŽ€

πŸ“¦ where this page comes from