rules6-save 38.2 KB
Newer Older
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1 2 3 4 5 6
# rules6-save generated by awall
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT DROP [0:0]
:icmp-routing - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
:limit-0 - [0:0]
:limit-1 - [0:0]
:limit-10 - [0:0]
:limit-11 - [0:0]
:limit-12 - [0:0]
:limit-13 - [0:0]
:limit-14 - [0:0]
:limit-15 - [0:0]
:limit-16 - [0:0]
:limit-17 - [0:0]
:limit-18 - [0:0]
:limit-19 - [0:0]
:limit-2 - [0:0]
:limit-20 - [0:0]
:limit-21 - [0:0]
:limit-22 - [0:0]
:limit-23 - [0:0]
:limit-24 - [0:0]
:limit-25 - [0:0]
:limit-26 - [0:0]
:limit-27 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
28 29
:limit-28 - [0:0]
:limit-29 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
30
:limit-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
31 32 33 34 35 36 37 38 39 40
:limit-30 - [0:0]
:limit-31 - [0:0]
:limit-32 - [0:0]
:limit-33 - [0:0]
:limit-34 - [0:0]
:limit-35 - [0:0]
:limit-36 - [0:0]
:limit-37 - [0:0]
:limit-38 - [0:0]
:limit-39 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
41
:limit-4 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
42 43 44 45 46 47 48 49 50 51
:limit-40 - [0:0]
:limit-41 - [0:0]
:limit-42 - [0:0]
:limit-43 - [0:0]
:limit-44 - [0:0]
:limit-45 - [0:0]
:limit-46 - [0:0]
:limit-47 - [0:0]
:limit-48 - [0:0]
:limit-49 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
52
:limit-5 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
53 54 55 56 57 58 59 60 61 62
:limit-50 - [0:0]
:limit-51 - [0:0]
:limit-52 - [0:0]
:limit-53 - [0:0]
:limit-54 - [0:0]
:limit-55 - [0:0]
:limit-56 - [0:0]
:limit-57 - [0:0]
:limit-58 - [0:0]
:limit-59 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
63
:limit-6 - [0:0]
64 65 66 67 68 69 70 71 72 73
:limit-60 - [0:0]
:limit-61 - [0:0]
:limit-62 - [0:0]
:limit-63 - [0:0]
:limit-64 - [0:0]
:limit-65 - [0:0]
:limit-66 - [0:0]
:limit-67 - [0:0]
:limit-68 - [0:0]
:limit-69 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
74
:limit-7 - [0:0]
75 76 77 78 79 80 81 82 83 84
:limit-70 - [0:0]
:limit-71 - [0:0]
:limit-72 - [0:0]
:limit-73 - [0:0]
:limit-74 - [0:0]
:limit-75 - [0:0]
:limit-76 - [0:0]
:limit-77 - [0:0]
:limit-78 - [0:0]
:limit-79 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
85
:limit-8 - [0:0]
86 87 88 89 90 91 92 93 94 95
:limit-80 - [0:0]
:limit-81 - [0:0]
:limit-82 - [0:0]
:limit-83 - [0:0]
:limit-84 - [0:0]
:limit-85 - [0:0]
:limit-86 - [0:0]
:limit-87 - [0:0]
:limit-88 - [0:0]
:limit-89 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
96 97 98 99
:limit-9 - [0:0]
:logaccept-0 - [0:0]
:logaccept-1 - [0:0]
:logaccept-2 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
100
:logaccept-3 - [0:0]
101 102 103
:logaccept-4 - [0:0]
:logaccept-5 - [0:0]
:logaccept-6 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
104 105 106 107
:logaccept-final-0 - [0:0]
:logaccept-final-1 - [0:0]
:logaccept-final-2 - [0:0]
:logaccept-final-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
108 109
:logaccept-final-4 - [0:0]
:logaccept-final-5 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
110 111 112
:logdrop-0 - [0:0]
:logdrop-1 - [0:0]
:logdrop-10 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
113 114 115 116
:logdrop-11 - [0:0]
:logdrop-12 - [0:0]
:logdrop-13 - [0:0]
:logdrop-14 - [0:0]
117 118 119 120 121
:logdrop-15 - [0:0]
:logdrop-16 - [0:0]
:logdrop-17 - [0:0]
:logdrop-18 - [0:0]
:logdrop-19 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
122
:logdrop-2 - [0:0]
123
:logdrop-20 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
124 125 126 127 128 129 130 131 132 133 134
:logdrop-3 - [0:0]
:logdrop-4 - [0:0]
:logdrop-5 - [0:0]
:logdrop-6 - [0:0]
:logdrop-7 - [0:0]
:logdrop-8 - [0:0]
:logdrop-9 - [0:0]
:logpass-0 - [0:0]
:logreject-0 - [0:0]
:logtarpit-0 - [0:0]
:tarpit - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164
-A FORWARD -j limit-59
-A FORWARD -j limit-58
-A FORWARD -j limit-57
-A FORWARD -j limit-56
-A FORWARD -j limit-55
-A FORWARD -j limit-54
-A FORWARD -j limit-53
-A FORWARD -j limit-52
-A FORWARD -j limit-51
-A FORWARD -j limit-50
-A FORWARD -j limit-49
-A FORWARD -j limit-48
-A FORWARD -j limit-47
-A FORWARD -j limit-46
-A FORWARD -j limit-45
-A FORWARD -j limit-44
-A FORWARD -j limit-43
-A FORWARD -j limit-42
-A FORWARD -j limit-41
-A FORWARD -j limit-40
-A FORWARD -j limit-39
-A FORWARD -j limit-38
-A FORWARD -j limit-37
-A FORWARD -j limit-36
-A FORWARD -j limit-35
-A FORWARD -j limit-34
-A FORWARD -j limit-33
-A FORWARD -j limit-32
-A FORWARD -j limit-31
-A FORWARD -j limit-30
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
165
-A FORWARD -m conntrack --ctstate ESTABLISHED -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185
-A FORWARD -j ACCEPT
-A FORWARD -j ACCEPT
-A FORWARD -j logdrop-0
-A FORWARD 
-A FORWARD -j logreject-0
-A FORWARD -j logtarpit-0
-A FORWARD -j limit-0
-A FORWARD -j limit-1
-A FORWARD -j limit-2
-A FORWARD -j limit-3
-A FORWARD -j limit-4
-A FORWARD -j limit-5
-A FORWARD -j limit-6
-A FORWARD -j limit-7
-A FORWARD -j limit-8
-A FORWARD -j limit-9
-A FORWARD -j limit-10
-A FORWARD -j limit-11
-A FORWARD -j limit-12
-A FORWARD -j limit-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201
-A FORWARD -j limit-14
-A FORWARD -j limit-15
-A FORWARD -j limit-16
-A FORWARD -j limit-17
-A FORWARD -j limit-18
-A FORWARD -j limit-19
-A FORWARD -j limit-20
-A FORWARD -j limit-21
-A FORWARD -j limit-22
-A FORWARD -j limit-23
-A FORWARD -j limit-24
-A FORWARD -j limit-25
-A FORWARD -j limit-26
-A FORWARD -j limit-27
-A FORWARD -j limit-28
-A FORWARD -j limit-29
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
202 203 204
-A FORWARD -j ACCEPT
-A FORWARD -j logaccept-final-0
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
205
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
206 207
-A FORWARD -j logaccept-final-1
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
208
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
209 210
-A FORWARD -j logaccept-final-2
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
211
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
212 213
-A FORWARD -j logaccept-final-3
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
214 215 216 217 218 219 220
-A FORWARD -j ACCEPT
-A FORWARD -j logaccept-final-4
-A FORWARD -j ACCEPT
-A FORWARD -j ACCEPT
-A FORWARD -j logaccept-final-5
-A FORWARD -j ACCEPT
-A FORWARD -j ACCEPT
221
-A FORWARD -j logdrop-19
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
222 223 224 225
-A FORWARD 
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
226 227
-A FORWARD -j logaccept-6
-A FORWARD -j logdrop-20
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
228
-A FORWARD -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
229 230 231
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth0 -o eth4 -j ACCEPT
-A FORWARD -i eth0 -o eth5 -j ACCEPT
-A FORWARD -i eth0 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth0 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth4 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -o eth5 -j ACCEPT
-A FORWARD -i eth1 -s fc00::/7 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth4 -o eth0 -j ACCEPT
-A FORWARD -i eth5 -o eth0 -j ACCEPT
-A FORWARD -i eth4 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth5 -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -i eth4 -o eth4 -j ACCEPT
-A FORWARD -i eth4 -o eth5 -j ACCEPT
-A FORWARD -i eth5 -o eth4 -j ACCEPT
-A FORWARD -i eth5 -o eth5 -j ACCEPT
-A FORWARD -i eth4 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth5 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth0 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth1 -d fc00::/7 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth4 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth5 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -m policy --dir out --pol ipsec -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
257
-A FORWARD -p icmpv6 -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287
-A INPUT -j limit-59
-A INPUT -j limit-58
-A INPUT -j limit-57
-A INPUT -j limit-56
-A INPUT -j limit-55
-A INPUT -j limit-54
-A INPUT -j limit-53
-A INPUT -j limit-52
-A INPUT -j limit-51
-A INPUT -j limit-50
-A INPUT -j limit-49
-A INPUT -j limit-48
-A INPUT -j limit-47
-A INPUT -j limit-46
-A INPUT -j limit-45
-A INPUT -j limit-44
-A INPUT -j limit-43
-A INPUT -j limit-42
-A INPUT -j limit-41
-A INPUT -j limit-40
-A INPUT -j limit-39
-A INPUT -j limit-38
-A INPUT -j limit-37
-A INPUT -j limit-36
-A INPUT -j limit-35
-A INPUT -j limit-34
-A INPUT -j limit-33
-A INPUT -j limit-32
-A INPUT -j limit-31
-A INPUT -j limit-30
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
288 289
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309
-A INPUT -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -j logdrop-0
-A INPUT 
-A INPUT -j logreject-0
-A INPUT -j logtarpit-0
-A INPUT -j limit-0
-A INPUT -j limit-1
-A INPUT -j limit-2
-A INPUT -j limit-3
-A INPUT -j limit-4
-A INPUT -j limit-5
-A INPUT -j limit-6
-A INPUT -j limit-7
-A INPUT -j limit-8
-A INPUT -j limit-9
-A INPUT -j limit-10
-A INPUT -j limit-11
-A INPUT -j limit-12
-A INPUT -j limit-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
-A INPUT -j limit-14
-A INPUT -j limit-15
-A INPUT -j limit-16
-A INPUT -j limit-17
-A INPUT -j limit-18
-A INPUT -j limit-19
-A INPUT -j limit-20
-A INPUT -j limit-21
-A INPUT -j limit-22
-A INPUT -j limit-23
-A INPUT -j limit-24
-A INPUT -j limit-25
-A INPUT -j limit-26
-A INPUT -j limit-27
-A INPUT -j limit-28
-A INPUT -j limit-29
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
326 327 328
-A INPUT -j ACCEPT
-A INPUT -j logaccept-final-0
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
329
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
330 331
-A INPUT -j logaccept-final-1
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
332
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
333 334
-A INPUT -j logaccept-final-2
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
335
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
336 337
-A INPUT -j logaccept-final-3
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
338 339 340 341 342 343
-A INPUT -j ACCEPT
-A INPUT -j logaccept-final-4
-A INPUT -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -j logaccept-final-5
-A INPUT -j ACCEPT
344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373
-A INPUT -i eth0 -j limit-60
-A INPUT -i eth0 -j limit-61
-A INPUT -i eth0 -j limit-62
-A INPUT -i eth0 -j limit-63
-A INPUT -i eth0 -j limit-64
-A INPUT -i eth0 -j limit-65
-A INPUT -i eth0 -j limit-66
-A INPUT -i eth0 -j limit-67
-A INPUT -i eth0 -j limit-68
-A INPUT -i eth0 -j limit-69
-A INPUT -i eth0 -j limit-70
-A INPUT -i eth0 -j limit-71
-A INPUT -i eth0 -j limit-72
-A INPUT -i eth0 -j limit-73
-A INPUT -i eth0 -j limit-74
-A INPUT -i eth0 -j limit-75
-A INPUT -i eth0 -j limit-76
-A INPUT -i eth0 -j limit-77
-A INPUT -i eth0 -j limit-78
-A INPUT -i eth0 -j limit-79
-A INPUT -i eth0 -j limit-80
-A INPUT -i eth0 -j limit-81
-A INPUT -i eth0 -j limit-82
-A INPUT -i eth0 -j limit-83
-A INPUT -i eth0 -j limit-84
-A INPUT -i eth0 -j limit-85
-A INPUT -i eth0 -j limit-86
-A INPUT -i eth0 -j limit-87
-A INPUT -i eth0 -j limit-88
-A INPUT -i eth0 -j limit-89
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
374
-A INPUT -j ACCEPT
375
-A INPUT -j logdrop-19
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
376 377 378 379
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
380 381
-A INPUT -j logaccept-6
-A INPUT -j logdrop-20
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
382
-A INPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
383 384 385
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
386 387 388
-A INPUT -p tcp --sport 80 -j ACCEPT
-A INPUT -p esp -j ACCEPT
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
389 390
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
391
-A INPUT -p icmpv6 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421
-A OUTPUT -j limit-59
-A OUTPUT -j limit-58
-A OUTPUT -j limit-57
-A OUTPUT -j limit-56
-A OUTPUT -j limit-55
-A OUTPUT -j limit-54
-A OUTPUT -j limit-53
-A OUTPUT -j limit-52
-A OUTPUT -j limit-51
-A OUTPUT -j limit-50
-A OUTPUT -j limit-49
-A OUTPUT -j limit-48
-A OUTPUT -j limit-47
-A OUTPUT -j limit-46
-A OUTPUT -j limit-45
-A OUTPUT -j limit-44
-A OUTPUT -j limit-43
-A OUTPUT -j limit-42
-A OUTPUT -j limit-41
-A OUTPUT -j limit-40
-A OUTPUT -j limit-39
-A OUTPUT -j limit-38
-A OUTPUT -j limit-37
-A OUTPUT -j limit-36
-A OUTPUT -j limit-35
-A OUTPUT -j limit-34
-A OUTPUT -j limit-33
-A OUTPUT -j limit-32
-A OUTPUT -j limit-31
-A OUTPUT -j limit-30
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
422 423
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443
-A OUTPUT -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT -j logdrop-0
-A OUTPUT 
-A OUTPUT -j logreject-0
-A OUTPUT -j logtarpit-0
-A OUTPUT -j limit-0
-A OUTPUT -j limit-1
-A OUTPUT -j limit-2
-A OUTPUT -j limit-3
-A OUTPUT -j limit-4
-A OUTPUT -j limit-5
-A OUTPUT -j limit-6
-A OUTPUT -j limit-7
-A OUTPUT -j limit-8
-A OUTPUT -j limit-9
-A OUTPUT -j limit-10
-A OUTPUT -j limit-11
-A OUTPUT -j limit-12
-A OUTPUT -j limit-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
-A OUTPUT -j limit-14
-A OUTPUT -j limit-15
-A OUTPUT -j limit-16
-A OUTPUT -j limit-17
-A OUTPUT -j limit-18
-A OUTPUT -j limit-19
-A OUTPUT -j limit-20
-A OUTPUT -j limit-21
-A OUTPUT -j limit-22
-A OUTPUT -j limit-23
-A OUTPUT -j limit-24
-A OUTPUT -j limit-25
-A OUTPUT -j limit-26
-A OUTPUT -j limit-27
-A OUTPUT -j limit-28
-A OUTPUT -j limit-29
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
460 461 462
-A OUTPUT -j ACCEPT
-A OUTPUT -j logaccept-final-0
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
463
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
464 465
-A OUTPUT -j logaccept-final-1
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
466
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
467 468
-A OUTPUT -j logaccept-final-2
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
469
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
470 471
-A OUTPUT -j logaccept-final-3
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
472 473 474 475 476 477
-A OUTPUT -j ACCEPT
-A OUTPUT -j logaccept-final-4
-A OUTPUT -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT -j logaccept-final-5
-A OUTPUT -j ACCEPT
478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
-A OUTPUT -o eth0 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
496
-A OUTPUT -j ACCEPT
497
-A OUTPUT -j logdrop-19
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
498 499 500 501
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
502 503
-A OUTPUT -j logaccept-6
-A OUTPUT -j logdrop-20
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
504
-A OUTPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
505 506 507
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
508 509 510
-A OUTPUT -p tcp --dport 80 -j ACCEPT
-A OUTPUT -p esp -j ACCEPT
-A OUTPUT -p udp -m multiport --sports 500,4500 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
511 512
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d fc00::/7 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
513 514 515 516 517
-A OUTPUT -p icmpv6 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 1 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 2 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 3 -j ACCEPT
-A icmp-routing -p icmpv6 --icmpv6-type 4 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
518 519 520 521
-A limit-0 -m recent --name limit-0 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-1
-A limit-0 -m recent --name limit-0 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-1 -m recent --name limit-1 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-2
-A limit-1 -m recent --name limit-1 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
-A limit-10 -m recent --name limit-10 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-10 -m recent --name limit-10 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-11 -m recent --name limit-11 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-11 -m recent --name limit-11 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-12 -m recent --name limit-12 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-12 -m recent --name limit-12 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-13 -m recent --name limit-13 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-13 -m recent --name limit-13 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-14 -m recent --name limit-14 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-14 -m limit --limit 1/second -j LOG
-A limit-14 -m recent --name limit-14 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-15 -m recent --name limit-15 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-15 -m recent --name limit-15 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-16 -m recent --name limit-16 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-16 -m recent --name limit-16 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-17 -m recent --name limit-17 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-17 -m recent --name limit-17 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-18 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-18 -j ACCEPT
-A limit-18 -m limit --limit 1/second -j LOG
-A limit-18 -j DROP
-A limit-19 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-19 -j RETURN
-A limit-19 -m limit --limit 1/second -j LOG
-A limit-19 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
545 546 547
-A limit-2 -m recent --name limit-2 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-3
-A limit-2 -m limit --limit 1/second -j LOG
-A limit-2 -m recent --name limit-2 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
548 549 550 551 552 553 554
-A limit-20 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-20 -j logaccept-0
-A limit-20 -m limit --limit 1/second -j LOG
-A limit-20 -j DROP
-A limit-21 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-21 -j ACCEPT
-A limit-21 -m limit --limit 1/second -j LOG
-A limit-21 -j DROP
-A limit-22 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-22 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
555 556 557
-A limit-22 -j DROP
-A limit-23 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-23 -j RETURN
-A limit-23 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
558
-A limit-24 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-24 -j logaccept-1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
559
-A limit-24 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
560
-A limit-25 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-25 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
561
-A limit-25 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
562
-A limit-26 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-26 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
563 564 565
-A limit-26 -j DROP
-A limit-27 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-27 -j RETURN
-A limit-27 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
566 567 568 569
-A limit-28 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-28 -j logaccept-2
-A limit-28 -j DROP
-A limit-29 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-29 -j ACCEPT
-A limit-29 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
570 571
-A limit-3 -m recent --name limit-3 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-4
-A limit-3 -m recent --name limit-3 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592
-A limit-30 -m recent --name limit-30 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-7
-A limit-30 -m recent --name limit-30 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-31 -m recent --name limit-31 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-8
-A limit-31 -m recent --name limit-31 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-32 -m recent --name limit-32 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-9
-A limit-32 -m recent --name limit-32 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-33 -m recent --name limit-33 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-10
-A limit-33 -m recent --name limit-33 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-34 -m recent --name limit-34 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-11
-A limit-34 -m recent --name limit-34 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-35 -m recent --name limit-35 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-12
-A limit-35 -m recent --name limit-35 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-36 -m recent --name limit-36 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-36 -m recent --name limit-36 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-37 -m recent --name limit-37 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-37 -m recent --name limit-37 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-38 -m recent --name limit-38 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-38 -m recent --name limit-38 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-39 -m recent --name limit-39 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-39 -m recent --name limit-39 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-4 -m recent --name limit-4 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-5
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
593
-A limit-4 -m recent --name limit-4 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616
-A limit-40 -m recent --name limit-40 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-40 -m recent --name limit-40 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-41 -m recent --name limit-41 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-41 -m recent --name limit-41 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-42 -m recent --name limit-42 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-42 -m recent --name limit-42 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-43 -m recent --name limit-43 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-43 -m recent --name limit-43 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-44 -m recent --name limit-44 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-44 -m recent --name limit-44 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-45 -m recent --name limit-45 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-45 -m recent --name limit-45 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-46 -m recent --name limit-46 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-46 -m recent --name limit-46 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-47 -m recent --name limit-47 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-47 -m recent --name limit-47 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-48 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-48 -j RETURN
-A limit-48 -m limit --limit 1/second -j LOG
-A limit-48 -j DROP
-A limit-49 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-49 -j RETURN
-A limit-49 -m limit --limit 1/second -j LOG
-A limit-49 -j DROP
-A limit-5 -m recent --name limit-5 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-6
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
617
-A limit-5 -m recent --name limit-5 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
-A limit-50 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-50 -j RETURN
-A limit-50 -m limit --limit 1/second -j LOG
-A limit-50 -j DROP
-A limit-51 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-51 -j RETURN
-A limit-51 -m limit --limit 1/second -j LOG
-A limit-51 -j DROP
-A limit-52 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-52 -j RETURN
-A limit-52 -j DROP
-A limit-53 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-53 -j RETURN
-A limit-53 -j DROP
-A limit-54 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-54 -j RETURN
-A limit-54 -j DROP
-A limit-55 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-55 -j RETURN
-A limit-55 -j DROP
-A limit-56 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-56 -j RETURN
-A limit-56 -j DROP
-A limit-57 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-57 -j RETURN
-A limit-57 -j DROP
-A limit-58 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-58 -j RETURN
-A limit-58 -j DROP
-A limit-59 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-59 -j RETURN
-A limit-59 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
640 641
-A limit-6 -m recent --name limit-6 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-6 -m recent --name limit-6 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663
-A limit-60 -m recent --name limit-60 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-13
-A limit-60 -m recent --name limit-60 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-61 -m recent --name limit-61 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-14
-A limit-61 -m recent --name limit-61 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-62 -m recent --name limit-62 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-15
-A limit-62 -m limit --limit 1/second -j LOG
-A limit-62 -m recent --name limit-62 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-63 -m recent --name limit-63 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-16
-A limit-63 -m recent --name limit-63 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-64 -m recent --name limit-64 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-17
-A limit-64 -m recent --name limit-64 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-65 -m recent --name limit-65 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j logdrop-18
-A limit-65 -m recent --name limit-65 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-66 -m recent --name limit-66 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-66 -m recent --name limit-66 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-67 -m recent --name limit-67 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-67 -m recent --name limit-67 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-68 -m recent --name limit-68 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-68 -m limit --limit 1/second -j LOG
-A limit-68 -m recent --name limit-68 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-69 -m recent --name limit-69 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-69 -m recent --name limit-69 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
664
-A limit-7 -m recent --name limit-7 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
665
-A limit-7 -m recent --name limit-7 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688
-A limit-70 -m recent --name limit-70 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-70 -m recent --name limit-70 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-71 -m recent --name limit-71 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-71 -m recent --name limit-71 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-72 -m recent --name limit-72 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-72 -m recent --name limit-72 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-73 -m recent --name limit-73 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-73 -m recent --name limit-73 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-74 -m recent --name limit-74 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-74 -m limit --limit 1/second -j LOG
-A limit-74 -m recent --name limit-74 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-75 -m recent --name limit-75 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-75 -m recent --name limit-75 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
-A limit-76 -m recent --name limit-76 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-76 -m recent --name limit-76 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-A limit-77 -m recent --name limit-77 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-77 -m recent --name limit-77 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-A limit-78 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-78 -j ACCEPT
-A limit-78 -m limit --limit 1/second -j LOG
-A limit-78 -j DROP
-A limit-79 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-79 -j RETURN
-A limit-79 -m limit --limit 1/second -j LOG
-A limit-79 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
689
-A limit-8 -m recent --name limit-8 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
690
-A limit-8 -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
691
-A limit-8 -m recent --name limit-8 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713
-A limit-80 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-80 -j logaccept-3
-A limit-80 -m limit --limit 1/second -j LOG
-A limit-80 -j DROP
-A limit-81 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-81 -j ACCEPT
-A limit-81 -m limit --limit 1/second -j LOG
-A limit-81 -j DROP
-A limit-82 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-82 -j ACCEPT
-A limit-82 -j DROP
-A limit-83 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-83 -j RETURN
-A limit-83 -j DROP
-A limit-84 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-84 -j logaccept-4
-A limit-84 -j DROP
-A limit-85 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-85 -j ACCEPT
-A limit-85 -j DROP
-A limit-86 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-86 -j ACCEPT
-A limit-86 -j DROP
-A limit-87 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-87 -j RETURN
-A limit-87 -j DROP
-A limit-88 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-88 -j logaccept-5
-A limit-88 -j DROP
-A limit-89 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 128 --hashlimit-name limit-89 -j ACCEPT
-A limit-89 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
714 715
-A limit-9 -m recent --name limit-9 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --update --hitcount 1 --seconds 1 -j DROP
-A limit-9 -m recent --name limit-9 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
716 717 718 719 720 721
-A logaccept-0 -m limit --limit 1/second -j LOG
-A logaccept-0 -j ACCEPT
-A logaccept-1 -m limit --limit 1/second -j LOG
-A logaccept-1 -j ACCEPT
-A logaccept-2 -m limit --limit 1/second -j LOG
-A logaccept-2 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
722 723
-A logaccept-3 -m limit --limit 1/second -j LOG
-A logaccept-3 -j ACCEPT
724 725 726 727 728 729
-A logaccept-4 -m limit --limit 1/second -j LOG
-A logaccept-4 -j ACCEPT
-A logaccept-5 -m limit --limit 1/second -j LOG
-A logaccept-5 -j ACCEPT
-A logaccept-6 -m limit --limit 1/second -j LOG
-A logaccept-6 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
730 731 732 733 734 735 736 737
-A logaccept-final-0 -m limit --limit 1/second -j LOG
-A logaccept-final-0 -j ACCEPT
-A logaccept-final-1 -m limit --limit 1/second -j LOG
-A logaccept-final-1 -j ACCEPT
-A logaccept-final-2 -m limit --limit 1/second -j LOG
-A logaccept-final-2 -j ACCEPT
-A logaccept-final-3 -m limit --limit 1/second -j LOG
-A logaccept-final-3 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
738 739 740 741
-A logaccept-final-4 -m limit --limit 1/second -j LOG
-A logaccept-final-4 -j ACCEPT
-A logaccept-final-5 -m limit --limit 1/second -j LOG
-A logaccept-final-5 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
742 743 744 745 746 747
-A logdrop-0 -m limit --limit 1/second -j LOG
-A logdrop-0 -j DROP
-A logdrop-1 -m limit --limit 1/second -j LOG
-A logdrop-1 -j DROP
-A logdrop-10 -m limit --limit 1/second -j LOG
-A logdrop-10 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
748 749 750 751 752 753 754 755
-A logdrop-11 -m limit --limit 1/second -j LOG
-A logdrop-11 -j DROP
-A logdrop-12 -m limit --limit 1/second -j LOG
-A logdrop-12 -j DROP
-A logdrop-13 -m limit --limit 1/second -j LOG
-A logdrop-13 -j DROP
-A logdrop-14 -m limit --limit 1/second -j LOG
-A logdrop-14 -j DROP
756 757 758 759 760 761 762 763 764 765
-A logdrop-15 -m limit --limit 1/second -j LOG
-A logdrop-15 -j DROP
-A logdrop-16 -m limit --limit 1/second -j LOG
-A logdrop-16 -j DROP
-A logdrop-17 -m limit --limit 1/second -j LOG
-A logdrop-17 -j DROP
-A logdrop-18 -m limit --limit 1/second -j LOG
-A logdrop-18 -j DROP
-A logdrop-19 -m limit --limit 1/second -j LOG
-A logdrop-19 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
766 767
-A logdrop-2 -m limit --limit 1/second -j LOG
-A logdrop-2 -j DROP
768 769
-A logdrop-20 -m limit --limit 1/second -j LOG
-A logdrop-20 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791
-A logdrop-3 -m limit --limit 1/second -j LOG
-A logdrop-3 -j DROP
-A logdrop-4 -m limit --limit 1/second -j LOG
-A logdrop-4 -j DROP
-A logdrop-5 -m limit --limit 1/second -j LOG
-A logdrop-5 -j DROP
-A logdrop-6 -m limit --limit 1/second -j LOG
-A logdrop-6 -j DROP
-A logdrop-7 -m limit --limit 1/second -j LOG
-A logdrop-7 -j DROP
-A logdrop-8 -m limit --limit 1/second -j LOG
-A logdrop-8 -j DROP
-A logdrop-9 -m limit --limit 1/second -j LOG
-A logdrop-9 -j DROP
-A logpass-0 -m limit --limit 1/second -j LOG
-A logreject-0 -m limit --limit 1/second -j LOG
-A logreject-0 -j REJECT
-A logtarpit-0 -m limit --limit 1/second -j LOG
-A logtarpit-0 -j tarpit
-A tarpit -p tcp -j TARPIT
-A tarpit -j DROP
COMMIT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
792 793 794 795 796 797 798 799 800 801
*mangle
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A INPUT -j MARK --set-mark 2
-A OUTPUT -j MARK --set-mark 0
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 2
-A PREROUTING -i eth0 -j MARK --set-mark 0
COMMIT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
802 803 804 805
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A OUTPUT -j CT --notrack
806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
-A OUTPUT -o eth0 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
824 825 826
-A OUTPUT -p tcp --dport 80 -j CT --notrack
-A OUTPUT -p esp -j CT --notrack
-A OUTPUT -p udp -m multiport --sports 500,4500 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
827
-A OUTPUT -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
828
-A PREROUTING -j CT --notrack
829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -i eth0 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
859 860 861
-A PREROUTING -m addrtype --dst-type LOCAL -p tcp --sport 80 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -p esp -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -p udp -m multiport --dports 500,4500 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
862 863 864
-A PREROUTING -i eth0 -j CT --notrack
-A PREROUTING -i eth1 -s fc00::/7 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
865
COMMIT