FLOW-FANOUT(1)
πΈ 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: aSIGQUITorSIGTERMsignal will causeflow-fanoutto exit. so likeβ¦ be nice to her. π
π OPTIONS π
-AAS0_substitution β Cisco's NetFlow exports represent the local autonomous system as0instead of the real value. this option can be used to replace the0in 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. π-ddebug_level β Enable debugging. spill the diagnostics, girl. π-ffilter_fname β Filter list filename. Defaults to/etc/flow-tools/cfg/filter. she lives there fr fr.-Ffilter_definition β Select the active definition. Defaults todefault. the default default. iconic.-hβ Display help. when in doubt, ask her. π«Ά-mprivacy_mask β Applyprivacy_maskto the source and destination IP address of flows. For example aprivacy_maskof255.255.255.0would convert flows with source/destination IP addresses10.1.1.1and10.2.2.2to10.1.1.0and10.2.2.0respectively. blur the last octet, protect the girlies. πΆοΈ-ppidfile β 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 is0then it is replaced with the exporter source IP. she's wearing a little disguise β¨-Sstat_interval β When configuredflow-fanoutwill emit a timestamped message onstderreverystat_intervalminutes indicating counters such as the number of flows received, packets processed, and lost flows. progress updates, because we love a check-in. π-Vpdu_version β Usepdu_versionformat output. the whole menu, bestie:1β NetFlow version 1 (No sequence numbers, AS, or mask)5β NetFlow version 56β NetFlow version 6 (5+ Encapsulation size)7β NetFlow version 7 (Catalyst switches)8.1β NetFlow AS Aggregation8.2β NetFlow Proto Port Aggregation8.3β NetFlow Source Prefix Aggregation8.4β NetFlow Destination Prefix Aggregation8.5β NetFlow Prefix Aggregation8.6β NetFlow Destination (Catalyst switches)8.7β NetFlow Source Destination (Catalyst switches)8.8β NetFlow Full Flow (Catalyst switches)8.9β NetFlow ToS AS Aggregation8.10β NetFlow ToS Proto Port Aggregation8.11β NetFlow ToS Source Prefix Aggregation8.12β NetFlow ToS Destination Prefix Aggregation8.13β NetFlow ToS Prefix Aggregation8.14β NetFlow ToS Prefix Port Aggregation1005β Flow-Tools tagged version 5
-xxmit_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 π
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
- fedora 43: flow-tools 0.68.5.1-45.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: flow-tools 0.68.5.1-45.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms