summaryrefslogtreecommitdiffstats
path: root/examples/rule.xml
blob: b1de25a6a7f57484b955bd17248541fab44ddc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?xml version="1.0"?>
<rule family="2" table="filter" chain="INPUT" handle="100" version="0">
  <rule_flags>0</rule_flags>
  <flags>127</flags>
  <compat_flags>0</compat_flags>
  <compat_proto>0</compat_proto>
  <expr type="meta">
    <dreg>1</dreg>
    <key>4</key>
  </expr>
  <expr type="cmp">
    <sreg>1</sreg>
    <op>eq</op>
    <cmpdata>
      <data_reg type="value">
        <len>1</len>
        <data0>0x04000000</data0>
      </data_reg>
    </cmpdata>
  </expr>
  <expr type="payload">
    <dreg>1</dreg>
    <base>1</base>
    <offset>12</offset>
    <len>4</len>
  </expr>
  <expr type="cmp">
    <sreg>1</sreg>
    <op>eq</op>
    <cmpdata>
      <data_reg type="value">
        <len>1</len>
        <data0>0x96d60496</data0>
      </data_reg>
    </cmpdata>
  </expr>
  <expr type="payload">
    <dreg>1</dreg>
    <base>1</base>
    <offset>16</offset>
    <len>4</len>
  </expr>
  <expr type="cmp">
    <sreg>1</sreg>
    <op>eq</op>
    <cmpdata>
      <data_reg type="value">
        <len>1</len>
        <data0>0x96d60329</data0>
      </data_reg>
    </cmpdata>
  </expr>
  <expr type="payload">
    <dreg>1</dreg>
    <base>1</base>
    <offset>9</offset>
    <len>1</len>
  </expr>
  <expr type="cmp">
    <sreg>1</sreg>
    <op>eq</op>
    <cmpdata>
      <data_reg type="value">
        <len>1</len>
        <data0>0x06000000</data0>
      </data_reg>
    </cmpdata>
  </expr>
  <expr type="match">
    <name>state</name>
    <rev>0</rev>
   <info>
    </info>
  </expr>
  <expr type="counter">
    <pkts>123123</pkts>
    <bytes>321321</bytes>
  </expr>
  <expr type="target">
    <name>LOG</name>
    <rev>0</rev>
    <info>
    </info>
  </expr>
</rule>