FLOW-MASK(1)
π FLOW-MASK(1) β the flow-mask glow-up π
okay bestie, so we're in the flow-mask section of the manual, and this little icon is all about putting tags on your flow files. Apply tags to flow files. That's the whole NAME energy. Let's get into it β¨
πΈ SYNOPSIS πΈ
flow-mask [ -hk ] [ -b big|little ] [ -C comment ] [ -d debug_level ]
[ -m mask_fname ] [ -M active_def... ]
π¦ DESCRIPTION π¦
The flow-mask utility is used to modify the source and destination mask length's in flow records. like, it literally reaches into your flow records and edits the mask lengths. main character behaviour fr fr π
β¨ OPTIONS β¨
-b big|littleβ byte order of the output. pick your vibe:bigorlittle.-CComment β drop a comment in there π-ddebug_level β turn on debugging. the higher the level, the more it yaps (in a helpful way).-hβ show help. your lil emergency exit π«Ά-kβ keep the time from the input. don't touch the timestamps, she's doing fine.-mmask_fname β load masks from mask_name. defaults to/etc/flow-tools/cfg/mask.-Mmask_def β use active_def as the active tag definition(s).
π THE CONFIG FILE, EXPLAINED π
The configuration file is a collection of definitions. A definition lists a sequence of prefixes and the mask length to replace the matching prefix with. and, crucial: lines begining with # are treated as comments and ignored. so go ahead, annotate your life π
Here's the whole mask-definition situation, laid out nice:
mask-definitionβ Begin mask-definition section. example:mask-definition fooprefixβ List the prefix to match on and the replacement mask. example:prefix 128.146/16 24
π EXAMPLES π
#
#file: masks
#
mask-definition foo
# All networks in 128.146/16 are /24's.
prefix 128.146/16 24
# except for 128.146.214/24, which are /32's.
prefix 128.146.214/24 32
and then the lil pipeline moment:
flow-cat flows | flow-mask -mfoo -Fmasks | flow-print -f4
π FILES π
Configuration files: Mask - /etc/flow-tools/cfg/mask.cfg.
π BUGS π
None known. (iconic, honestly. no notes.)
π AUTHOR π
Mark Fullmer <maf@splintered.net>
π₯ SEE ALSO π₯
lowkey a public service announcement:flow-maskdoesn't exist in a vacuum, it's part of the wholeflow-tools(1)family, so go say hi to the siblings too π«Ά
and that's the whole page, bestie!! πβ¨ this lil edition of the flow-mask manual is from 26 ΠΠ²Π³ΡΡΡ 2010 β yeah, august 2010, a certified vintage β and it's the FLOW-MASK(1) page itself. take care of her, she's been here a while πΈπ¦
π¦ 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