1FLOW-MASK(1) FLOW-MASK(1)
2
3
4
6 flow-mask - Apply tags to flow files.
7
9 flow-mask [ -hk ] [ -b big|little ] [ -C comment ] [ -d debug_level
10 ] [ -m mask_fname ] [ -M active_def... ]
11
13 The flow-mask utility is used to modify the source and destination mask
14 length's in flow records.
15
17 -b big|little
18 Byte order of output.
19
20 -C Comment
21 Add a comment.
22
23 -d debug_level
24 Enable debugging.
25
26 -h Display help.
27
28 -k Keep time from input.
29
30 -m mask_fname
31 Load masks from mask_name. Defaults to /etc/flow-tools/cfg/mask
32
33 -M mask_def
34 Use active_def as the active tag definition(s).
35
36 The configuration file is a collection of definitions. A definition
37 lists a sequence of prefixes and the mask length to replace the match‐
38 ing prefix with. Lines begining with # are treated as comments and
39 ignored.
40
41 mask-definition command Description
42 ----------------------------------------------------------------------
43 mask-definition Begin mask-definition section
44 mask-definition foo
45
46 prefix List the prefix to match on and the
47 replacement mask.
48 prefix 128.146/16 24
49
50
52 #
53 #file: masks
54 #
55 mask-definition foo
56 # All networks in 128.146/16 are /24's.
57 prefix 128.146/16 24
58 # except for 128.146.214/24, which are /32's.
59 prefix 128.146.214/24 32
60
61
62 flow-cat flows | flow-mask -mfoo -Fmasks | flow-print -f4
63
65 Configuration files: Mask - /etc/flow-tools/cfg/mask.cfg.
66
68 None known.
69
71 Mark Fullmer <maf@splintered.net>
72
74 flow-tools(1)
75
76
77
78 26 Август 2010 FLOW-MASK(1)