| 1 | '\" t
|
|---|
| 2 | .\" Title: smb_traffic_analyzer
|
|---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
|---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
|---|
| 5 | .\" Date: 08/02/2011
|
|---|
| 6 | .\" Manual: System Administration tools
|
|---|
| 7 | .\" Source: Samba 3.5
|
|---|
| 8 | .\" Language: English
|
|---|
| 9 | .\"
|
|---|
| 10 | .TH "SMB_TRAFFIC_ANALYZER" "8" "08/02/2011" "Samba 3\&.5" "System Administration tools"
|
|---|
| 11 | .\" -----------------------------------------------------------------
|
|---|
| 12 | .\" * set default formatting
|
|---|
| 13 | .\" -----------------------------------------------------------------
|
|---|
| 14 | .\" disable hyphenation
|
|---|
| 15 | .nh
|
|---|
| 16 | .\" disable justification (adjust text to left margin only)
|
|---|
| 17 | .ad l
|
|---|
| 18 | .\" -----------------------------------------------------------------
|
|---|
| 19 | .\" * MAIN CONTENT STARTS HERE *
|
|---|
| 20 | .\" -----------------------------------------------------------------
|
|---|
| 21 | .SH "NAME"
|
|---|
| 22 | vfs_smb_traffic_analyzer \- log Samba VFS read and write operations through a socket to a helper application
|
|---|
| 23 | .SH "SYNOPSIS"
|
|---|
| 24 | .HP \w'\ 'u
|
|---|
| 25 | vfs objects = smb_traffic_analyzer
|
|---|
| 26 | .SH "DESCRIPTION"
|
|---|
| 27 | .PP
|
|---|
| 28 | This VFS module is part of the
|
|---|
| 29 | \fBsamba\fR(7)
|
|---|
| 30 | suite\&.
|
|---|
| 31 | .PP
|
|---|
| 32 | The
|
|---|
| 33 | vfs_smb_traffic_analyzer
|
|---|
| 34 | VFS module logs client write and read operations on a Samba server and sends this data over a socket to a helper program, which feeds a SQL database\&. More information on the helper programs can be obtained from the homepage of the project at: http://holger123\&.wordpress\&.com/smb\-traffic\-analyzer/
|
|---|
| 35 | .PP
|
|---|
| 36 | vfs_smb_traffic_analyzer
|
|---|
| 37 | currently is aware of the following VFS operations:
|
|---|
| 38 | .RS 4
|
|---|
| 39 | write
|
|---|
| 40 | .RE
|
|---|
| 41 | .RS 4
|
|---|
| 42 | pwrite
|
|---|
| 43 | .RE
|
|---|
| 44 | .RS 4
|
|---|
| 45 | read
|
|---|
| 46 | .RE
|
|---|
| 47 | .RS 4
|
|---|
| 48 | pread
|
|---|
| 49 | .RE
|
|---|
| 50 | .PP
|
|---|
| 51 | vfs_smb_traffic_analyzer
|
|---|
| 52 | sends the following data in a fixed format seperated by a comma through either an internet or a unix domain socket:
|
|---|
| 53 | .sp
|
|---|
| 54 | .if n \{\
|
|---|
| 55 | .RS 4
|
|---|
| 56 | .\}
|
|---|
| 57 | .nf
|
|---|
| 58 | BYTES|USER|DOMAIN|READ/WRITE|SHARE|FILENAME|TIMESTAMP
|
|---|
| 59 |
|
|---|
| 60 | .fi
|
|---|
| 61 | .if n \{\
|
|---|
| 62 | .RE
|
|---|
| 63 | .\}
|
|---|
| 64 | .PP
|
|---|
| 65 | Description of the records:
|
|---|
| 66 | .sp
|
|---|
| 67 | .RS 4
|
|---|
| 68 | .ie n \{\
|
|---|
| 69 | \h'-04'\(bu\h'+03'\c
|
|---|
| 70 | .\}
|
|---|
| 71 | .el \{\
|
|---|
| 72 | .sp -1
|
|---|
| 73 | .IP \(bu 2.3
|
|---|
| 74 | .\}
|
|---|
| 75 | BYTES
|
|---|
| 76 | \- the length in bytes of the VFS operation
|
|---|
| 77 | .RE
|
|---|
| 78 | .sp
|
|---|
| 79 | .RS 4
|
|---|
| 80 | .ie n \{\
|
|---|
| 81 | \h'-04'\(bu\h'+03'\c
|
|---|
| 82 | .\}
|
|---|
| 83 | .el \{\
|
|---|
| 84 | .sp -1
|
|---|
| 85 | .IP \(bu 2.3
|
|---|
| 86 | .\}
|
|---|
| 87 | USER
|
|---|
| 88 | \- the user who initiated the operation
|
|---|
| 89 | .RE
|
|---|
| 90 | .sp
|
|---|
| 91 | .RS 4
|
|---|
| 92 | .ie n \{\
|
|---|
| 93 | \h'-04'\(bu\h'+03'\c
|
|---|
| 94 | .\}
|
|---|
| 95 | .el \{\
|
|---|
| 96 | .sp -1
|
|---|
| 97 | .IP \(bu 2.3
|
|---|
| 98 | .\}
|
|---|
| 99 | DOMAIN
|
|---|
| 100 | \- the domain of the user
|
|---|
| 101 | .RE
|
|---|
| 102 | .sp
|
|---|
| 103 | .RS 4
|
|---|
| 104 | .ie n \{\
|
|---|
| 105 | \h'-04'\(bu\h'+03'\c
|
|---|
| 106 | .\}
|
|---|
| 107 | .el \{\
|
|---|
| 108 | .sp -1
|
|---|
| 109 | .IP \(bu 2.3
|
|---|
| 110 | .\}
|
|---|
| 111 | READ/WRITE
|
|---|
| 112 | \- either "W" for a write operation or "R" for read
|
|---|
| 113 | .RE
|
|---|
| 114 | .sp
|
|---|
| 115 | .RS 4
|
|---|
| 116 | .ie n \{\
|
|---|
| 117 | \h'-04'\(bu\h'+03'\c
|
|---|
| 118 | .\}
|
|---|
| 119 | .el \{\
|
|---|
| 120 | .sp -1
|
|---|
| 121 | .IP \(bu 2.3
|
|---|
| 122 | .\}
|
|---|
| 123 | SHARE
|
|---|
| 124 | \- the name of the share on which the VFS operation occured
|
|---|
| 125 | .RE
|
|---|
| 126 | .sp
|
|---|
| 127 | .RS 4
|
|---|
| 128 | .ie n \{\
|
|---|
| 129 | \h'-04'\(bu\h'+03'\c
|
|---|
| 130 | .\}
|
|---|
| 131 | .el \{\
|
|---|
| 132 | .sp -1
|
|---|
| 133 | .IP \(bu 2.3
|
|---|
| 134 | .\}
|
|---|
| 135 | FILENAME
|
|---|
| 136 | \- the name of the file that was used by the VFS operation
|
|---|
| 137 | .RE
|
|---|
| 138 | .sp
|
|---|
| 139 | .RS 4
|
|---|
| 140 | .ie n \{\
|
|---|
| 141 | \h'-04'\(bu\h'+03'\c
|
|---|
| 142 | .\}
|
|---|
| 143 | .el \{\
|
|---|
| 144 | .sp -1
|
|---|
| 145 | .IP \(bu 2.3
|
|---|
| 146 | .\}
|
|---|
| 147 | TIMESTAMP
|
|---|
| 148 | \- a timestamp, formatted as "yyyy\-mm\-dd hh\-mm\-ss\&.ms" indicating when the VFS operation occured
|
|---|
| 149 | .sp
|
|---|
| 150 | .RE
|
|---|
| 151 | .PP
|
|---|
| 152 | This module is stackable\&.
|
|---|
| 153 | .SH "OPTIONS"
|
|---|
| 154 | .PP
|
|---|
| 155 | smb_traffic_analyzer:mode = STRING
|
|---|
| 156 | .RS 4
|
|---|
| 157 | If STRING matches to "unix_domain_socket", the module will use a unix domain socket located at /var/tmp/stadsocket, if STRING contains an different string or is not defined, the module will use an internet domain socket for data transfer\&.
|
|---|
| 158 | .RE
|
|---|
| 159 | .PP
|
|---|
| 160 | smb_traffic_analyzer:host = STRING
|
|---|
| 161 | .RS 4
|
|---|
| 162 | The module will send the data to the system named with the hostname STRING\&.
|
|---|
| 163 | .RE
|
|---|
| 164 | .PP
|
|---|
| 165 | smb_traffic_analyzer:port = STRING
|
|---|
| 166 | .RS 4
|
|---|
| 167 | The module will send the data using the TCP port given in STRING\&.
|
|---|
| 168 | .RE
|
|---|
| 169 | .PP
|
|---|
| 170 | smb_traffic_analyzer:anonymize_prefix = STRING
|
|---|
| 171 | .RS 4
|
|---|
| 172 | The module will replace the user names with a prefix given by STRING and a simple hash number\&.
|
|---|
| 173 | .RE
|
|---|
| 174 | .PP
|
|---|
| 175 | smb_traffic_analyzer:total_anonymization = STRING
|
|---|
| 176 | .RS 4
|
|---|
| 177 | If STRING matches to \'yes\', the module will replace any user name with the string given by the option smb_traffic_analyzer:anonymize_prefix, without generating an additional hash number\&. This means that any transfer data will be mapped to a single user, leading to a total anonymization of user related data\&.
|
|---|
| 178 | .RE
|
|---|
| 179 | .SH "EXAMPLES"
|
|---|
| 180 | .PP
|
|---|
| 181 | The module running on share "example_share", using a unix domain socket
|
|---|
| 182 | .sp
|
|---|
| 183 | .if n \{\
|
|---|
| 184 | .RS 4
|
|---|
| 185 | .\}
|
|---|
| 186 | .nf
|
|---|
| 187 | \fI[example_share]\fR
|
|---|
| 188 | \m[blue]\fBpath = /data/example\fR\m[]
|
|---|
| 189 | \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
|
|---|
| 190 | \m[blue]\fBsmb_traffic_analyzer:mode = unix_domain_socket\fR\m[]
|
|---|
| 191 |
|
|---|
| 192 | .fi
|
|---|
| 193 | .if n \{\
|
|---|
| 194 | .RE
|
|---|
| 195 | .\}
|
|---|
| 196 | .PP
|
|---|
| 197 | The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491\&.
|
|---|
| 198 | .sp
|
|---|
| 199 | .if n \{\
|
|---|
| 200 | .RS 4
|
|---|
| 201 | .\}
|
|---|
| 202 | .nf
|
|---|
| 203 | \fI[example_share]\fR
|
|---|
| 204 | \m[blue]\fBpath = /data/example\fR\m[]
|
|---|
| 205 | \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
|
|---|
| 206 | \m[blue]\fBsmb_traffic_analyzer:host = examplehost\fR\m[]
|
|---|
| 207 | \m[blue]\fBsmb_traffic_analyzer:port = 3491\fR\m[]
|
|---|
| 208 |
|
|---|
| 209 | .fi
|
|---|
| 210 | .if n \{\
|
|---|
| 211 | .RE
|
|---|
| 212 | .\}
|
|---|
| 213 | .PP
|
|---|
| 214 | The module running on share "example_share", using an internet socket, connecting to host "examplehost" on port 3491, anonymizing user names with the prefix "User"\&.
|
|---|
| 215 | .sp
|
|---|
| 216 | .if n \{\
|
|---|
| 217 | .RS 4
|
|---|
| 218 | .\}
|
|---|
| 219 | .nf
|
|---|
| 220 | \fI[example_share]\fR
|
|---|
| 221 | \m[blue]\fBpath = /data/example\fR\m[]
|
|---|
| 222 | \m[blue]\fBvfs objects = smb_traffic_analyzer\fR\m[]
|
|---|
| 223 | \m[blue]\fBsmb_traffic_analyzer:host = examplehost\fR\m[]
|
|---|
| 224 | \m[blue]\fBsmb_traffic_analyzer:port = 3491\fR\m[]
|
|---|
| 225 | \m[blue]\fBsmb_traffic_analyzer:anonymize_prefix = User\fR\m[]
|
|---|
| 226 |
|
|---|
| 227 | .fi
|
|---|
| 228 | .if n \{\
|
|---|
| 229 | .RE
|
|---|
| 230 | .\}
|
|---|
| 231 | .SH "VERSION"
|
|---|
| 232 | .PP
|
|---|
| 233 | This man page is correct for version 3\&.3 of the Samba suite\&.
|
|---|
| 234 | .SH "AUTHOR"
|
|---|
| 235 | .PP
|
|---|
| 236 | The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
|
|---|
| 237 | .PP
|
|---|
| 238 | The original version of the VFS module and the helper tools were created by Holger Hetterich\&.
|
|---|