accounting 13 KB
Newer Older
schlick's avatar
schlick committed
1
#
cvstreviso's avatar
cvstreviso committed
2
#   systemgraph's example accounting file for eth0 and ppp0
schlick's avatar
schlick committed
3
#
cvslasan's avatar
cvslasan committed
4
# $Id: accounting,v 1.9 2010/02/13 18:39:40 cvslasan Exp $
cvstreviso's avatar
cvstreviso committed
5
#
cvspassaun's avatar
cvspassaun committed
6
###############################################################################
cvstreviso's avatar
cvstreviso committed
7 8 9
#
#    This file is part of systemgraph.
#
cvslasan's avatar
cvslasan committed
10
#    Copyright (C) 2004-2010 Jochen Schlick 
cvspassaun's avatar
cvspassaun committed
11
#
cvstreviso's avatar
cvstreviso committed
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#    systemgraph is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    systemgraph is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with systemgraph.  If not, see <http://www.gnu.org/licenses/>.
#
#
###############################################################################
cvspassaun's avatar
cvspassaun committed
27 28 29 30 31
#
# Please see http://shorewall.net/Accounting.html for examples and
# additional information about how to use this file.
#
###############################################################################
schlick's avatar
schlick committed
32 33
#ACTION	 CHAIN	         SOURCE  DESTINATION	PROTO	DEST		SOURCE	USER/
#							PORT(S)		PORT(S)	GROUP
cvstreviso's avatar
cvstreviso committed
34 35 36 37 38 39 40
#
#
#
# this is an example for accounting eth0's and ppp0's traffic.
# If you have other interfaces to account simply replace eth0/ppp0
# with your interface names.
#
cvslasan's avatar
cvslasan committed
41 42 43 44 45 46 47 48 49 50
# - systemagraph wants accounting data for port
#   22
#   25
#   53
#   80
#   110
#   119
#   143
#   443
#   873
cvstreviso's avatar
cvstreviso committed
51
#
schlick's avatar
schlick committed
52
#..............................................................................
schlick's avatar
schlick committed
53 54 55
###################
# eth0            #
###################
schlick's avatar
schlick committed
56 57 58 59
ouSGeth0_22:COUNT    -       -     eth0         tcp     22
ouSGeth0_22:COUNT    -       -     eth0         tcp     -         22
ouSGeth0_22:COUNT    -       -     eth0         udp     22
ouSGeth0_22:COUNT    -       -     eth0         udp     -         22
schlick's avatar
schlick committed
60
DONE    ouSGeth0_22
schlick's avatar
schlick committed
61 62 63 64 65
inSGeth0_22:COUNT    -       eth0  -            tcp     22
inSGeth0_22:COUNT    -       eth0  -            tcp     -         22
inSGeth0_22:COUNT    -       eth0  -            udp     22
inSGeth0_22:COUNT    -       eth0  -            udp     -         22
DONE    inSGeth0_22
schlick's avatar
schlick committed
66
#..............................................................
schlick's avatar
schlick committed
67 68 69 70
ouSGeth0_25:COUNT    -       -     eth0         tcp     25
ouSGeth0_25:COUNT    -       -     eth0         tcp     -         25
ouSGeth0_25:COUNT    -       -     eth0         udp     25
ouSGeth0_25:COUNT    -       -     eth0         udp     -         25
schlick's avatar
schlick committed
71
DONE    ouSGeth0_25
schlick's avatar
schlick committed
72 73 74 75 76
inSGeth0_25:COUNT    -       eth0  -            tcp     25
inSGeth0_25:COUNT    -       eth0  -            tcp     -         25
inSGeth0_25:COUNT    -       eth0  -            udp     25
inSGeth0_25:COUNT    -       eth0  -            udp     -         25
DONE    inSGeth0_25
schlick's avatar
schlick committed
77
#..............................................................
schlick's avatar
schlick committed
78 79 80 81
ouSGeth0_53:COUNT    -       -     eth0         tcp     53
ouSGeth0_53:COUNT    -       -     eth0         tcp     -         53
ouSGeth0_53:COUNT    -       -     eth0         udp     53
ouSGeth0_53:COUNT    -       -     eth0         udp     -         53
schlick's avatar
schlick committed
82
DONE    ouSGeth0_53
schlick's avatar
schlick committed
83 84 85 86 87
inSGeth0_53:COUNT    -       eth0  -            tcp     53
inSGeth0_53:COUNT    -       eth0  -            tcp     -         53
inSGeth0_53:COUNT    -       eth0  -            udp     53
inSGeth0_53:COUNT    -       eth0  -            udp     -         53
DONE    inSGeth0_53
schlick's avatar
schlick committed
88
#..............................................................
schlick's avatar
schlick committed
89 90 91 92
ouSGeth0_80:COUNT    -       -     eth0         tcp     80
ouSGeth0_80:COUNT    -       -     eth0         tcp     -         80
ouSGeth0_80:COUNT    -       -     eth0         udp     80
ouSGeth0_80:COUNT    -       -     eth0         udp     -         80
schlick's avatar
schlick committed
93
DONE    ouSGeth0_80
schlick's avatar
schlick committed
94 95 96 97 98
inSGeth0_80:COUNT    -       eth0  -            tcp     80
inSGeth0_80:COUNT    -       eth0  -            tcp     -         80
inSGeth0_80:COUNT    -       eth0  -            udp     80
inSGeth0_80:COUNT    -       eth0  -            udp     -         80
DONE    inSGeth0_80
schlick's avatar
schlick committed
99
#..............................................................
schlick's avatar
schlick committed
100 101 102 103
ouSGeth0_110:COUNT    -       -     eth0        tcp     110
ouSGeth0_110:COUNT    -       -     eth0        tcp     -         110
ouSGeth0_110:COUNT    -       -     eth0        udp     110
ouSGeth0_110:COUNT    -       -     eth0        udp     -         110
schlick's avatar
schlick committed
104
DONE    ouSGeth0_110
schlick's avatar
schlick committed
105 106 107 108 109
inSGeth0_110:COUNT    -       eth0  -           tcp     110
inSGeth0_110:COUNT    -       eth0  -           tcp     -         110
inSGeth0_110:COUNT    -       eth0  -           udp     110
inSGeth0_110:COUNT    -       eth0  -           udp     -         110
DONE    inSGeth0_110
schlick's avatar
schlick committed
110
#..............................................................
schlick's avatar
schlick committed
111 112 113 114
ouSGeth0_119:COUNT    -       -     eth0        tcp     119
ouSGeth0_119:COUNT    -       -     eth0        tcp     -         119
ouSGeth0_119:COUNT    -       -     eth0        udp     119
ouSGeth0_119:COUNT    -       -     eth0        udp     -         119
schlick's avatar
schlick committed
115
DONE    ouSGeth0_119
schlick's avatar
schlick committed
116 117 118 119 120
inSGeth0_119:COUNT    -       eth0  -           tcp     119
inSGeth0_119:COUNT    -       eth0  -           tcp     -         119
inSGeth0_119:COUNT    -       eth0  -           udp     119
inSGeth0_119:COUNT    -       eth0  -           udp     -         119
DONE    inSGeth0_119
schlick's avatar
schlick committed
121
#..............................................................
schlick's avatar
schlick committed
122 123 124 125
ouSGeth0_143:COUNT    -       -     eth0        tcp     143
ouSGeth0_143:COUNT    -       -     eth0        tcp     -         143
ouSGeth0_143:COUNT    -       -     eth0        udp     143
ouSGeth0_143:COUNT    -       -     eth0        udp     -         143
schlick's avatar
schlick committed
126
DONE    ouSGeth0_143
schlick's avatar
schlick committed
127 128 129 130 131
inSGeth0_143:COUNT    -       eth0  -           tcp     143
inSGeth0_143:COUNT    -       eth0  -           tcp     -         143
inSGeth0_143:COUNT    -       eth0  -           udp     143
inSGeth0_143:COUNT    -       eth0  -           udp     -         143
DONE    inSGeth0_143
schlick's avatar
schlick committed
132
#..............................................................
schlick's avatar
schlick committed
133 134 135 136
ouSGeth0_443:COUNT    -       -     eth0        tcp     443
ouSGeth0_443:COUNT    -       -     eth0        tcp     -         443
ouSGeth0_443:COUNT    -       -     eth0        udp     443
ouSGeth0_443:COUNT    -       -     eth0        udp     -         443
schlick's avatar
schlick committed
137
DONE    ouSGeth0_443
schlick's avatar
schlick committed
138 139 140 141 142
inSGeth0_443:COUNT    -       eth0  -           tcp     443
inSGeth0_443:COUNT    -       eth0  -           tcp     -         443
inSGeth0_443:COUNT    -       eth0  -           udp     443
inSGeth0_443:COUNT    -       eth0  -           udp     -         443
DONE    inSGeth0_443
schlick's avatar
schlick committed
143
#..............................................................
schlick's avatar
schlick committed
144 145 146 147
ouSGeth0_873:COUNT    -       -     eth0        tcp     873
ouSGeth0_873:COUNT    -       -     eth0        tcp     -         873
ouSGeth0_873:COUNT    -       -     eth0        udp     873
ouSGeth0_873:COUNT    -       -     eth0        udp     -         873
schlick's avatar
schlick committed
148
DONE    ouSGeth0_873
schlick's avatar
schlick committed
149 150 151 152 153
inSGeth0_873:COUNT    -       eth0  -           tcp     873
inSGeth0_873:COUNT    -       eth0  -           tcp     -         873
inSGeth0_873:COUNT    -       eth0  -           udp     873
inSGeth0_873:COUNT    -       eth0  -           udp     -         873
DONE    inSGeth0_873
schlick's avatar
schlick committed
154
#..............................................................
cvslasan's avatar
cvslasan committed
155 156 157 158 159 160 161
# ... add entries for additional protocols here ...............
#..............................................................
#
#
#
#
#
schlick's avatar
schlick committed
162 163 164 165
#
###################
# ppp0            #
###################
schlick's avatar
schlick committed
166 167 168 169
ouSGppp0_22:COUNT    -       -     ppp0         tcp     22
ouSGppp0_22:COUNT    -       -     ppp0         tcp     -         22
ouSGppp0_22:COUNT    -       -     ppp0         udp     22
ouSGppp0_22:COUNT    -       -     ppp0         udp     -         22
schlick's avatar
schlick committed
170
DONE    ouSGppp0_22
schlick's avatar
schlick committed
171 172 173 174 175
inSGppp0_22:COUNT    -       ppp0  -            tcp     22
inSGppp0_22:COUNT    -       ppp0  -            tcp     -         22
inSGppp0_22:COUNT    -       ppp0  -            udp     22
inSGppp0_22:COUNT    -       ppp0  -            udp     -         22
DONE    inSGppp0_22
schlick's avatar
schlick committed
176
#..............................................................
schlick's avatar
schlick committed
177 178 179 180
ouSGppp0_25:COUNT    -       -     ppp0         tcp     25
ouSGppp0_25:COUNT    -       -     ppp0         tcp     -         25
ouSGppp0_25:COUNT    -       -     ppp0         udp     25
ouSGppp0_25:COUNT    -       -     ppp0         udp     -         25
schlick's avatar
schlick committed
181
DONE    ouSGppp0_25
schlick's avatar
schlick committed
182 183 184 185 186
inSGppp0_25:COUNT    -       ppp0  -            tcp     25
inSGppp0_25:COUNT    -       ppp0  -            tcp     -         25
inSGppp0_25:COUNT    -       ppp0  -            udp     25
inSGppp0_25:COUNT    -       ppp0  -            udp     -         25
DONE    inSGppp0_25
schlick's avatar
schlick committed
187
#..............................................................
schlick's avatar
schlick committed
188 189 190 191
ouSGppp0_53:COUNT    -       -     ppp0         tcp     53
ouSGppp0_53:COUNT    -       -     ppp0         tcp     -         53
ouSGppp0_53:COUNT    -       -     ppp0         udp     53
ouSGppp0_53:COUNT    -       -     ppp0         udp     -         53
schlick's avatar
schlick committed
192
DONE    ouSGppp0_53
schlick's avatar
schlick committed
193 194 195 196 197
inSGppp0_53:COUNT    -       ppp0  -            tcp     53
inSGppp0_53:COUNT    -       ppp0  -            tcp     -         53
inSGppp0_53:COUNT    -       ppp0  -            udp     53
inSGppp0_53:COUNT    -       ppp0  -            udp     -         53
DONE    inSGppp0_53
schlick's avatar
schlick committed
198
#..............................................................
schlick's avatar
schlick committed
199 200 201 202
ouSGppp0_80:COUNT    -       -     ppp0         tcp     80
ouSGppp0_80:COUNT    -       -     ppp0         tcp     -         80
ouSGppp0_80:COUNT    -       -     ppp0         udp     80
ouSGppp0_80:COUNT    -       -     ppp0         udp     -         80
schlick's avatar
schlick committed
203
DONE    ouSGppp0_80
schlick's avatar
schlick committed
204 205 206 207 208
inSGppp0_80:COUNT    -       ppp0  -            tcp     80
inSGppp0_80:COUNT    -       ppp0  -            tcp     -         80
inSGppp0_80:COUNT    -       ppp0  -            udp     80
inSGppp0_80:COUNT    -       ppp0  -            udp     -         80
DONE    inSGppp0_80
schlick's avatar
schlick committed
209
#..............................................................
schlick's avatar
schlick committed
210 211 212 213
ouSGppp0_110:COUNT    -       -     ppp0        tcp     110
ouSGppp0_110:COUNT    -       -     ppp0        tcp     -         110
ouSGppp0_110:COUNT    -       -     ppp0        udp     110
ouSGppp0_110:COUNT    -       -     ppp0        udp     -         110
schlick's avatar
schlick committed
214
DONE    ouSGppp0_110
schlick's avatar
schlick committed
215 216 217 218 219
inSGppp0_110:COUNT    -       ppp0  -           tcp     110
inSGppp0_110:COUNT    -       ppp0  -           tcp     -         110
inSGppp0_110:COUNT    -       ppp0  -           udp     110
inSGppp0_110:COUNT    -       ppp0  -           udp     -         110
DONE    inSGppp0_110
schlick's avatar
schlick committed
220
#..............................................................
schlick's avatar
schlick committed
221 222 223 224
ouSGppp0_119:COUNT    -       -     ppp0        tcp     119
ouSGppp0_119:COUNT    -       -     ppp0        tcp     -         119
ouSGppp0_119:COUNT    -       -     ppp0        udp     119
ouSGppp0_119:COUNT    -       -     ppp0        udp     -         119
schlick's avatar
schlick committed
225
DONE    ouSGppp0_119
schlick's avatar
schlick committed
226 227 228 229 230
inSGppp0_119:COUNT    -       ppp0  -           tcp     119
inSGppp0_119:COUNT    -       ppp0  -           tcp     -         119
inSGppp0_119:COUNT    -       ppp0  -           udp     119
inSGppp0_119:COUNT    -       ppp0  -           udp     -         119
DONE    inSGppp0_119
schlick's avatar
schlick committed
231
#..............................................................
schlick's avatar
schlick committed
232 233 234 235
ouSGppp0_143:COUNT    -       -     ppp0        tcp     143
ouSGppp0_143:COUNT    -       -     ppp0        tcp     -         143
ouSGppp0_143:COUNT    -       -     ppp0        udp     143
ouSGppp0_143:COUNT    -       -     ppp0        udp     -         143
schlick's avatar
schlick committed
236
DONE    ouSGppp0_143
schlick's avatar
schlick committed
237 238 239 240 241
inSGppp0_143:COUNT    -       ppp0  -           tcp     143
inSGppp0_143:COUNT    -       ppp0  -           tcp     -         143
inSGppp0_143:COUNT    -       ppp0  -           udp     143
inSGppp0_143:COUNT    -       ppp0  -           udp     -         143
DONE    inSGppp0_143
schlick's avatar
schlick committed
242
#..............................................................
schlick's avatar
schlick committed
243 244 245 246
ouSGppp0_443:COUNT    -       -     ppp0        tcp     443
ouSGppp0_443:COUNT    -       -     ppp0        tcp     -         443
ouSGppp0_443:COUNT    -       -     ppp0        udp     443
ouSGppp0_443:COUNT    -       -     ppp0        udp     -         443
schlick's avatar
schlick committed
247
DONE    ouSGppp0_443
schlick's avatar
schlick committed
248 249 250 251 252
inSGppp0_443:COUNT    -       ppp0  -           tcp     443
inSGppp0_443:COUNT    -       ppp0  -           tcp     -         443
inSGppp0_443:COUNT    -       ppp0  -           udp     443
inSGppp0_443:COUNT    -       ppp0  -           udp     -         443
DONE    inSGppp0_443
schlick's avatar
schlick committed
253
#..............................................................
schlick's avatar
schlick committed
254 255 256 257
ouSGppp0_873:COUNT    -       -     ppp0        tcp     873
ouSGppp0_873:COUNT    -       -     ppp0        tcp     -         873
ouSGppp0_873:COUNT    -       -     ppp0        udp     873
ouSGppp0_873:COUNT    -       -     ppp0        udp     -         873
schlick's avatar
schlick committed
258
DONE    ouSGppp0_873
schlick's avatar
schlick committed
259 260 261 262 263
inSGppp0_873:COUNT    -       ppp0  -           tcp     873
inSGppp0_873:COUNT    -       ppp0  -           tcp     -         873
inSGppp0_873:COUNT    -       ppp0  -           udp     873
inSGppp0_873:COUNT    -       ppp0  -           udp     -         873
DONE    inSGppp0_873
cvslasan's avatar
cvslasan committed
264 265 266
#
#..............................................................
# ... add entries for additional protocols here ...............
schlick's avatar
schlick committed
267
#..............................................................
schlick's avatar
schlick committed
268
#
cvslasan's avatar
cvslasan committed
269 270 271 272 273 274
#
#
#
#
#
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE