~ubuntu-branches/ubuntu/trusty/ufw/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/good/logging/result

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge
  • Date: 2010-01-30 09:42:05 UTC
  • mfrom: (30.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100130094205-8wsowzipc32k48yy
Tags: 0.29.3-0ubuntu1
* New upstream release. Fixes:
  LP: #490366
  LP: #512131
  LP: #488032
  LP: #513387
* debian/ufw.upstart.ubuntu: start before an interface receives traffic
* debian/postinst: don't sed or chmod a file that doesn't exist
  (LP: #503039)
* debian/after*.rules.md5sum: updated for ucf (added additional sums for
  people using the workaround in LP: #488032)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
TESTING LOGLEVELS
2
 
0: logging off
 
2
0: --dry-run logging off
3
3
 
4
4
 
5
5
LOGLEVEL=off
6
 
1: logging low
 
6
1: --dry-run logging low
7
7
 
8
8
 
9
9
LOGLEVEL=low
10
 
2: logging medium
 
10
2: --dry-run logging medium
11
11
 
12
12
 
13
13
LOGLEVEL=medium
14
 
3: logging high
 
14
3: --dry-run logging high
15
15
 
16
16
 
17
17
LOGLEVEL=high
18
 
4: logging full
 
18
4: --dry-run logging full
19
19
 
20
20
 
21
21
LOGLEVEL=full
22
 
5: logging OFF
 
22
5: --dry-run logging OFF
23
23
 
24
24
 
25
25
LOGLEVEL=off
26
 
6: logging LOW
 
26
6: --dry-run logging LOW
27
27
 
28
28
 
29
29
LOGLEVEL=low
30
 
7: logging MEDIUM
 
30
7: --dry-run logging MEDIUM
31
31
 
32
32
 
33
33
LOGLEVEL=medium
34
 
8: logging HIGH
 
34
8: --dry-run logging HIGH
35
35
 
36
36
 
37
37
LOGLEVEL=high
38
 
9: logging FULL
 
38
9: --dry-run logging FULL
39
39
 
40
40
 
41
41
LOGLEVEL=full
42
42
TESTING LOGLEVELS ('on')
43
 
10: logging off
 
43
10: --dry-run logging off
44
44
 
45
45
 
46
46
LOGLEVEL=off
47
 
11: logging on
 
47
11: --dry-run logging on
48
48
 
49
49
 
50
50
LOGLEVEL=low
51
 
12: logging medium
 
51
12: --dry-run logging medium
52
52
 
53
53
 
54
54
LOGLEVEL=medium
55
 
13: logging on
 
55
13: --dry-run logging on
56
56
 
57
57
 
58
58
LOGLEVEL=medium
2047
2047
:ufw6-user-forward - [0:0]
2048
2048
### RULES ###
2049
2049
COMMIT
 
2050
154: delete allow in on eth0 log
 
2051
 
 
2052
 
 
2053
155: delete allow in on eth0 log from 192.168.0.1 to 10.0.0.1 port 24 proto tcp
 
2054
 
 
2055
 
 
2056
156: delete deny in on eth0 log-all from 192.168.0.1 to 10.0.0.1 port 25 proto tcp
 
2057
 
 
2058
 
 
2059
157: delete allow out on eth0 log
 
2060
 
 
2061
 
 
2062
158: delete allow out on eth0 log from 192.168.0.1 to 10.0.0.1 port 24 proto tcp
 
2063
 
 
2064
 
 
2065
159: delete deny out on eth0 log-all from 192.168.0.1 to 10.0.0.1 port 25 proto tcp
 
2066
 
 
2067
 
 
2068
TESTING WRITING LOGLEVELS
 
2069
160: logging off
 
2070
 
 
2071
 
 
2072
161: --dry-run allow 22
 
2073
WARN: Checks disabled
 
2074
*filter
 
2075
:ufw-user-input - [0:0]
 
2076
:ufw-user-output - [0:0]
 
2077
:ufw-user-forward - [0:0]
 
2078
:ufw-before-logging-input - [0:0]
 
2079
:ufw-before-logging-output - [0:0]
 
2080
:ufw-before-logging-forward - [0:0]
 
2081
:ufw-user-logging-input - [0:0]
 
2082
:ufw-user-logging-output - [0:0]
 
2083
:ufw-user-logging-forward - [0:0]
 
2084
:ufw-after-logging-input - [0:0]
 
2085
:ufw-after-logging-output - [0:0]
 
2086
:ufw-after-logging-forward - [0:0]
 
2087
:ufw-logging-deny - [0:0]
 
2088
:ufw-logging-allow - [0:0]
 
2089
:ufw-user-limit - [0:0]
 
2090
:ufw-user-limit-accept - [0:0]
 
2091
### RULES ###
 
2092
 
 
2093
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2094
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2095
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2096
 
 
2097
### END RULES ###
 
2098
 
 
2099
### LOGGING ###
 
2100
-I ufw-user-logging-input -j RETURN
 
2101
-I ufw-user-logging-output -j RETURN
 
2102
-I ufw-user-logging-forward -j RETURN
 
2103
### END LOGGING ###
 
2104
 
 
2105
### RATE LIMITING ###
 
2106
-A ufw-user-limit -j REJECT
 
2107
-A ufw-user-limit-accept -j ACCEPT
 
2108
### END RATE LIMITING ###
 
2109
COMMIT
 
2110
Rules updated
 
2111
 
 
2112
 
 
2113
162: logging low
 
2114
 
 
2115
 
 
2116
163: --dry-run allow 22
 
2117
WARN: Checks disabled
 
2118
*filter
 
2119
:ufw-user-input - [0:0]
 
2120
:ufw-user-output - [0:0]
 
2121
:ufw-user-forward - [0:0]
 
2122
:ufw-before-logging-input - [0:0]
 
2123
:ufw-before-logging-output - [0:0]
 
2124
:ufw-before-logging-forward - [0:0]
 
2125
:ufw-user-logging-input - [0:0]
 
2126
:ufw-user-logging-output - [0:0]
 
2127
:ufw-user-logging-forward - [0:0]
 
2128
:ufw-after-logging-input - [0:0]
 
2129
:ufw-after-logging-output - [0:0]
 
2130
:ufw-after-logging-forward - [0:0]
 
2131
:ufw-logging-deny - [0:0]
 
2132
:ufw-logging-allow - [0:0]
 
2133
:ufw-user-limit - [0:0]
 
2134
:ufw-user-limit-accept - [0:0]
 
2135
### RULES ###
 
2136
 
 
2137
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2138
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2139
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2140
 
 
2141
### END RULES ###
 
2142
 
 
2143
### LOGGING ###
 
2144
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2145
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2146
-I ufw-logging-deny -m state --state INVALID -j RETURN -m limit --limit 3/min --limit-burst 10
 
2147
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2148
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] " -m limit --limit 3/min --limit-burst 10
 
2149
### END LOGGING ###
 
2150
 
 
2151
### RATE LIMITING ###
 
2152
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
 
2153
-A ufw-user-limit -j REJECT
 
2154
-A ufw-user-limit-accept -j ACCEPT
 
2155
### END RATE LIMITING ###
 
2156
COMMIT
 
2157
Rules updated
 
2158
 
 
2159
 
 
2160
164: logging medium
 
2161
 
 
2162
 
 
2163
165: --dry-run allow 22
 
2164
WARN: Checks disabled
 
2165
*filter
 
2166
:ufw-user-input - [0:0]
 
2167
:ufw-user-output - [0:0]
 
2168
:ufw-user-forward - [0:0]
 
2169
:ufw-before-logging-input - [0:0]
 
2170
:ufw-before-logging-output - [0:0]
 
2171
:ufw-before-logging-forward - [0:0]
 
2172
:ufw-user-logging-input - [0:0]
 
2173
:ufw-user-logging-output - [0:0]
 
2174
:ufw-user-logging-forward - [0:0]
 
2175
:ufw-after-logging-input - [0:0]
 
2176
:ufw-after-logging-output - [0:0]
 
2177
:ufw-after-logging-forward - [0:0]
 
2178
:ufw-logging-deny - [0:0]
 
2179
:ufw-logging-allow - [0:0]
 
2180
:ufw-user-limit - [0:0]
 
2181
:ufw-user-limit-accept - [0:0]
 
2182
### RULES ###
 
2183
 
 
2184
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2185
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2186
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2187
 
 
2188
### END RULES ###
 
2189
 
 
2190
### LOGGING ###
 
2191
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2192
-A ufw-after-logging-output -j LOG --log-prefix "[UFW ALLOW] " -m limit --limit 3/min --limit-burst 10
 
2193
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2194
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] " -m limit --limit 3/min --limit-burst 10
 
2195
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] " -m limit --limit 3/min --limit-burst 10
 
2196
-I ufw-before-logging-input -j LOG --log-prefix "[UFW AUDIT] " -m state --state NEW -m limit --limit 3/min --limit-burst 10
 
2197
-I ufw-before-logging-output -j LOG --log-prefix "[UFW AUDIT] " -m state --state NEW -m limit --limit 3/min --limit-burst 10
 
2198
-I ufw-before-logging-forward -j LOG --log-prefix "[UFW AUDIT] " -m state --state NEW -m limit --limit 3/min --limit-burst 10
 
2199
### END LOGGING ###
 
2200
 
 
2201
### RATE LIMITING ###
 
2202
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
 
2203
-A ufw-user-limit -j REJECT
 
2204
-A ufw-user-limit-accept -j ACCEPT
 
2205
### END RATE LIMITING ###
 
2206
COMMIT
 
2207
Rules updated
 
2208
 
 
2209
 
 
2210
166: logging high
 
2211
 
 
2212
 
 
2213
167: --dry-run allow 22
 
2214
WARN: Checks disabled
 
2215
*filter
 
2216
:ufw-user-input - [0:0]
 
2217
:ufw-user-output - [0:0]
 
2218
:ufw-user-forward - [0:0]
 
2219
:ufw-before-logging-input - [0:0]
 
2220
:ufw-before-logging-output - [0:0]
 
2221
:ufw-before-logging-forward - [0:0]
 
2222
:ufw-user-logging-input - [0:0]
 
2223
:ufw-user-logging-output - [0:0]
 
2224
:ufw-user-logging-forward - [0:0]
 
2225
:ufw-after-logging-input - [0:0]
 
2226
:ufw-after-logging-output - [0:0]
 
2227
:ufw-after-logging-forward - [0:0]
 
2228
:ufw-logging-deny - [0:0]
 
2229
:ufw-logging-allow - [0:0]
 
2230
:ufw-user-limit - [0:0]
 
2231
:ufw-user-limit-accept - [0:0]
 
2232
### RULES ###
 
2233
 
 
2234
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2235
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2236
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2237
 
 
2238
### END RULES ###
 
2239
 
 
2240
### LOGGING ###
 
2241
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] "
 
2242
-A ufw-after-logging-output -j LOG --log-prefix "[UFW ALLOW] "
 
2243
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] "
 
2244
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] "
 
2245
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] "
 
2246
-I ufw-before-logging-input -j LOG --log-prefix "[UFW AUDIT] " -m limit --limit 3/min --limit-burst 10
 
2247
-I ufw-before-logging-output -j LOG --log-prefix "[UFW AUDIT] " -m limit --limit 3/min --limit-burst 10
 
2248
-I ufw-before-logging-forward -j LOG --log-prefix "[UFW AUDIT] " -m limit --limit 3/min --limit-burst 10
 
2249
### END LOGGING ###
 
2250
 
 
2251
### RATE LIMITING ###
 
2252
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
 
2253
-A ufw-user-limit -j REJECT
 
2254
-A ufw-user-limit-accept -j ACCEPT
 
2255
### END RATE LIMITING ###
 
2256
COMMIT
 
2257
Rules updated
 
2258
 
 
2259
 
 
2260
168: logging full
 
2261
 
 
2262
 
 
2263
169: --dry-run allow 22
 
2264
WARN: Checks disabled
 
2265
*filter
 
2266
:ufw-user-input - [0:0]
 
2267
:ufw-user-output - [0:0]
 
2268
:ufw-user-forward - [0:0]
 
2269
:ufw-before-logging-input - [0:0]
 
2270
:ufw-before-logging-output - [0:0]
 
2271
:ufw-before-logging-forward - [0:0]
 
2272
:ufw-user-logging-input - [0:0]
 
2273
:ufw-user-logging-output - [0:0]
 
2274
:ufw-user-logging-forward - [0:0]
 
2275
:ufw-after-logging-input - [0:0]
 
2276
:ufw-after-logging-output - [0:0]
 
2277
:ufw-after-logging-forward - [0:0]
 
2278
:ufw-logging-deny - [0:0]
 
2279
:ufw-logging-allow - [0:0]
 
2280
:ufw-user-limit - [0:0]
 
2281
:ufw-user-limit-accept - [0:0]
 
2282
### RULES ###
 
2283
 
 
2284
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2285
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2286
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2287
 
 
2288
### END RULES ###
 
2289
 
 
2290
### LOGGING ###
 
2291
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] "
 
2292
-A ufw-after-logging-output -j LOG --log-prefix "[UFW ALLOW] "
 
2293
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] "
 
2294
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] "
 
2295
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] "
 
2296
-I ufw-before-logging-input -j LOG --log-prefix "[UFW AUDIT] "
 
2297
-I ufw-before-logging-output -j LOG --log-prefix "[UFW AUDIT] "
 
2298
-I ufw-before-logging-forward -j LOG --log-prefix "[UFW AUDIT] "
 
2299
### END LOGGING ###
 
2300
 
 
2301
### RATE LIMITING ###
 
2302
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
 
2303
-A ufw-user-limit -j REJECT
 
2304
-A ufw-user-limit-accept -j ACCEPT
 
2305
### END RATE LIMITING ###
 
2306
COMMIT
 
2307
Rules updated
 
2308
 
 
2309
 
 
2310
170: logging on
 
2311
 
 
2312
 
 
2313
171: --dry-run allow 22
 
2314
WARN: Checks disabled
 
2315
*filter
 
2316
:ufw-user-input - [0:0]
 
2317
:ufw-user-output - [0:0]
 
2318
:ufw-user-forward - [0:0]
 
2319
:ufw-before-logging-input - [0:0]
 
2320
:ufw-before-logging-output - [0:0]
 
2321
:ufw-before-logging-forward - [0:0]
 
2322
:ufw-user-logging-input - [0:0]
 
2323
:ufw-user-logging-output - [0:0]
 
2324
:ufw-user-logging-forward - [0:0]
 
2325
:ufw-after-logging-input - [0:0]
 
2326
:ufw-after-logging-output - [0:0]
 
2327
:ufw-after-logging-forward - [0:0]
 
2328
:ufw-logging-deny - [0:0]
 
2329
:ufw-logging-allow - [0:0]
 
2330
:ufw-user-limit - [0:0]
 
2331
:ufw-user-limit-accept - [0:0]
 
2332
### RULES ###
 
2333
 
 
2334
### tuple ### allow any 22 0.0.0.0/0 any 0.0.0.0/0 in
 
2335
-A ufw-user-input -p tcp --dport 22 -j ACCEPT
 
2336
-A ufw-user-input -p udp --dport 22 -j ACCEPT
 
2337
 
 
2338
### END RULES ###
 
2339
 
 
2340
### LOGGING ###
 
2341
-A ufw-after-logging-input -j LOG --log-prefix "[UFW BLOCK] "
 
2342
-A ufw-after-logging-output -j LOG --log-prefix "[UFW ALLOW] "
 
2343
-A ufw-after-logging-forward -j LOG --log-prefix "[UFW BLOCK] "
 
2344
-A ufw-logging-deny -j LOG --log-prefix "[UFW BLOCK] "
 
2345
-A ufw-logging-allow -j LOG --log-prefix "[UFW ALLOW] "
 
2346
-I ufw-before-logging-input -j LOG --log-prefix "[UFW AUDIT] "
 
2347
-I ufw-before-logging-output -j LOG --log-prefix "[UFW AUDIT] "
 
2348
-I ufw-before-logging-forward -j LOG --log-prefix "[UFW AUDIT] "
 
2349
### END LOGGING ###
 
2350
 
 
2351
### RATE LIMITING ###
 
2352
-A ufw-user-limit -m limit --limit 3/minute -j LOG --log-prefix "[UFW LIMIT BLOCK] "
 
2353
-A ufw-user-limit -j REJECT
 
2354
-A ufw-user-limit-accept -j ACCEPT
 
2355
### END RATE LIMITING ###
 
2356
COMMIT
 
2357
Rules updated
 
2358
 
 
2359