# BRCM_VERSION=3
[bcm963xx.git] / userapps / opensource / net-snmp / mibs / UCD-IPFWACC-MIB.txt
1 UCD-IPFWACC-MIB DEFINITIONS ::= BEGIN
2
3 IMPORTS
4     OBJECT-TYPE, MODULE-IDENTITY, IpAddress, Integer32, Counter32
5         FROM SNMPv2-SMI
6     DisplayString
7         FROM SNMPv2-TC
8     ucdExperimental
9         FROM UCD-SNMP-MIB;
10
11 ucdIpFwAccMIB MODULE-IDENTITY
12     LAST-UPDATED "9912160000Z"
13     ORGANIZATION "University of California, Davis"
14     CONTACT-INFO    
15         "This mib is no longer being maintained by the University of
16          California and is now in life-support-mode and being
17          maintained by the net-snmp project.  The best place to write
18          for public questions about the net-snmp-coders mailing list
19          at net-snmp-coders@lists.sourceforge.net.
20
21          postal:   Wes Hardaker
22                    P.O. Box 382
23                    Davis CA  95617
24
25          email:    net-snmp-coders@lists.sourceforge.net
26         "
27     DESCRIPTION
28         "This module defines MIB components for reading information
29          from the accounting rules IP Firewall. This would typically
30          let you read the rules and the counters. I did not include
31          some flags and fields that I considered irrelevant for the
32          accounting rules. Resetting the counters of the rules by SNMP
33          would be simple, but I don't consider it so useful. I gave no
34          consideration to implementing write access for allowing
35          modification of the accounting rules.
36
37          Cristian.Estan@net.utcluj.ro "
38     REVISION     "9912160000Z"
39     DESCRIPTION
40         "SMIv2 version converted from an older MIB definition."
41     ::= { ucdExperimental 1 }
42
43 ipFwAccTable OBJECT-TYPE
44     SYNTAX      SEQUENCE OF IpFwAccEntry
45     MAX-ACCESS  not-accessible
46     STATUS      current
47     DESCRIPTION
48         "A table with the accounting rules of the IP firewall"
49     ::= { ucdIpFwAccMIB 1 }
50
51 ipFwAccEntry OBJECT-TYPE
52     SYNTAX      IpFwAccEntry
53     MAX-ACCESS  not-accessible
54     STATUS      current
55     DESCRIPTION
56         "An accounting rule of the IP firewall"
57     INDEX       { ipFwAccIndex }
58     ::= { ipFwAccTable 1 }
59
60 IpFwAccEntry ::= SEQUENCE {
61     ipFwAccIndex        Integer32,
62     ipFwAccSrcAddr      IpAddress,
63     ipFwAccSrcNetMask   IpAddress,
64     ipFwAccDstAddr      IpAddress,
65     ipFwAccDstNetMask   IpAddress,
66     ipFwAccViaName      DisplayString,
67     ipFwAccViaAddr      IpAddress,
68     ipFwAccProto        INTEGER,
69     ipFwAccBidir        INTEGER,
70     ipFwAccDir          INTEGER,
71     ipFwAccBytes        Counter32,
72     ipFwAccPackets      Counter32,
73     ipFwAccNrSrcPorts   Integer32,
74     ipFwAccNrDstPorts   Integer32,
75     ipFwAccSrcIsRange   INTEGER,
76     ipFwAccDstIsRange   INTEGER,
77     ipFwAccPort1        Integer32,
78     ipFwAccPort2        Integer32,
79     ipFwAccPort3        Integer32,
80     ipFwAccPort4        Integer32,
81     ipFwAccPort5        Integer32,
82     ipFwAccPort6        Integer32,
83     ipFwAccPort7        Integer32,
84     ipFwAccPort8        Integer32,
85     ipFwAccPort9        Integer32,
86     ipFwAccPort10       Integer32
87 }
88
89 ipFwAccIndex OBJECT-TYPE
90     SYNTAX      Integer32 (0..2147483647)
91     MAX-ACCESS  read-only
92     STATUS      current
93     DESCRIPTION
94         "Reference index for each firewall rule."
95     ::= { ipFwAccEntry 1 }
96
97 ipFwAccSrcAddr OBJECT-TYPE
98     SYNTAX      IpAddress
99     MAX-ACCESS  read-only
100     STATUS      current
101     DESCRIPTION
102         "The source address in the firewall rule."
103     ::= { ipFwAccEntry 2 }
104
105 ipFwAccSrcNetMask OBJECT-TYPE
106     SYNTAX      IpAddress
107     MAX-ACCESS  read-only
108     STATUS      current
109     DESCRIPTION
110         "The netmask of the source address in the firewall rule."
111     ::= { ipFwAccEntry 3 }
112
113 ipFwAccDstAddr OBJECT-TYPE
114     SYNTAX      IpAddress
115     MAX-ACCESS  read-only
116     STATUS      current
117     DESCRIPTION
118         "The destination address in the firewall rule."
119     ::= { ipFwAccEntry 4 }
120
121 ipFwAccDstNetMask OBJECT-TYPE
122     SYNTAX      IpAddress
123     MAX-ACCESS  read-only
124     STATUS      current
125     DESCRIPTION
126         "The netmask of the destination address in the firewall rule."
127     ::= { ipFwAccEntry 5 }
128
129 ipFwAccViaName OBJECT-TYPE
130     SYNTAX      DisplayString (SIZE(1..64))
131     MAX-ACCESS  read-only
132     STATUS      current
133     DESCRIPTION
134         "The name of the interface to which the rule applies. If no
135          interface is associated with the present rule, this should
136          contain a dash (-)."
137     ::= { ipFwAccEntry 6 }
138
139 ipFwAccViaAddr OBJECT-TYPE
140     SYNTAX      IpAddress
141     MAX-ACCESS  read-only
142     STATUS      current
143     DESCRIPTION
144         "The address of the interface to which the rule applies.
145          Using this parameter makes sense when multiple addresses are
146          associated to the same physical interface. If not defined
147          for the current rule this should be set to 0."
148     ::= { ipFwAccEntry 7 }
149
150 ipFwAccProto OBJECT-TYPE
151     SYNTAX      INTEGER {
152                     other(1),
153                     all(2),
154                     tcp(3),
155                     udp(4),
156                     icmp(5)
157                 }
158     MAX-ACCESS  read-only
159     STATUS      current
160     DESCRIPTION
161         "The protocol(s) to which the rule applies."
162     ::= { ipFwAccEntry 8 }
163
164 ipFwAccBidir OBJECT-TYPE
165     SYNTAX      INTEGER {
166                     unidirectional(1),
167                     bidirectional(2)
168                 }
169     MAX-ACCESS  read-only
170     STATUS      current
171     DESCRIPTION
172         "Whether the rule works in both directions (i.e. with the
173          source and destination parts swapped) or not."
174     ::= { ipFwAccEntry 9 }
175
176 ipFwAccDir OBJECT-TYPE
177     SYNTAX      INTEGER {
178                     both(1),
179                     in(2),
180                     out(3)
181                 }
182     MAX-ACCESS  read-only
183     STATUS      current
184     DESCRIPTION
185         "Whether the rule applies to packets entering or exiting the
186          kernel."
187     ::= { ipFwAccEntry 10 }
188
189 ipFwAccBytes OBJECT-TYPE
190     SYNTAX      Counter32
191     MAX-ACCESS  read-only
192     STATUS      current
193     DESCRIPTION
194         "The number of bytes that matched this rule since the last
195          reset of the counters."
196     ::= { ipFwAccEntry 11 }
197
198 ipFwAccPackets OBJECT-TYPE
199     SYNTAX      Counter32
200     MAX-ACCESS  read-only
201     STATUS      current
202     DESCRIPTION
203         "The number of packets that matched this rule since the last
204          reset of the counters."
205     ::= { ipFwAccEntry 12 }
206
207 ipFwAccNrSrcPorts OBJECT-TYPE
208     SYNTAX      Integer32
209     MAX-ACCESS  read-only
210     STATUS      current
211     DESCRIPTION
212         "The number of ports that refer to the source address."
213     ::= { ipFwAccEntry 13 }
214
215 ipFwAccNrDstPorts OBJECT-TYPE
216     SYNTAX      Integer32 
217     MAX-ACCESS  read-only
218     STATUS      current
219     DESCRIPTION
220         "The number of ports that refer to the destination address."
221     ::= { ipFwAccEntry 14 }
222
223 ipFwAccSrcIsRange OBJECT-TYPE
224     SYNTAX      INTEGER {
225                     srchasrange(1),
226                     srchasnorange(2)
227                 }
228     MAX-ACCESS  read-only
229     STATUS      current
230     DESCRIPTION
231         "Interpret the first two ports of the source part as
232          the upper and lower limit of an interval or not."
233     ::= { ipFwAccEntry 15 }
234
235 ipFwAccDstIsRange OBJECT-TYPE
236     SYNTAX      INTEGER {
237                     dsthasrange(1),
238                     dsthasnorange(2)
239                 }
240     MAX-ACCESS  read-only
241     STATUS      current
242     DESCRIPTION
243         "Interpret the first two ports of the destination part as
244          the upper and lower limit of an interval or not."
245     ::= { ipFwAccEntry 16 }
246
247 ipFwAccPort1 OBJECT-TYPE
248     SYNTAX      Integer32
249     MAX-ACCESS  read-only
250     STATUS      current
251     DESCRIPTION
252         "Port number 1."
253     ::= { ipFwAccEntry 17 }
254
255 ipFwAccPort2 OBJECT-TYPE
256     SYNTAX      Integer32
257     MAX-ACCESS  read-only
258     STATUS      current
259     DESCRIPTION
260         "Port number 2."
261     ::= { ipFwAccEntry 18 }
262
263 ipFwAccPort3 OBJECT-TYPE
264     SYNTAX      Integer32
265     MAX-ACCESS  read-only
266     STATUS      current
267     DESCRIPTION
268         "Port number 3."
269     ::= { ipFwAccEntry 19 }
270
271 ipFwAccPort4 OBJECT-TYPE
272     SYNTAX      Integer32
273     MAX-ACCESS  read-only
274     STATUS      current
275     DESCRIPTION
276         "Port number 4."
277     ::= { ipFwAccEntry 20 }
278
279 ipFwAccPort5 OBJECT-TYPE
280     SYNTAX      Integer32
281     MAX-ACCESS  read-only
282     STATUS      current
283     DESCRIPTION
284         "Port number 5."
285     ::= { ipFwAccEntry 21 }
286
287 ipFwAccPort6 OBJECT-TYPE
288     SYNTAX      Integer32 
289     MAX-ACCESS  read-only
290     STATUS      current
291     DESCRIPTION
292         "Port number 6."
293     ::= { ipFwAccEntry 22 }
294
295 ipFwAccPort7 OBJECT-TYPE
296     SYNTAX      Integer32
297     MAX-ACCESS  read-only
298     STATUS      current
299     DESCRIPTION
300         "Port number 7."
301     ::= { ipFwAccEntry 23 }
302
303 ipFwAccPort8 OBJECT-TYPE
304     SYNTAX      Integer32
305     MAX-ACCESS  read-only
306     STATUS      current
307     DESCRIPTION
308         "Port number 8."
309     ::= { ipFwAccEntry 24 }
310
311 ipFwAccPort9 OBJECT-TYPE
312      SYNTAX     Integer32
313     MAX-ACCESS  read-only
314     STATUS      current
315     DESCRIPTION
316         "Port number 9."
317     ::= { ipFwAccEntry 25 }
318
319 ipFwAccPort10 OBJECT-TYPE
320     SYNTAX      Integer32
321     MAX-ACCESS  read-only
322     STATUS      current
323     DESCRIPTION
324         "Port number 10."
325     ::= { ipFwAccEntry 26 }
326
327 END