rules6-save 26.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 64 65 66 67 68 69
:limit-6 - [0:0]
:limit-7 - [0:0]
:limit-8 - [0:0]
:limit-9 - [0:0]
:logaccept-0 - [0:0]
:logaccept-1 - [0:0]
:logaccept-2 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
70
:logaccept-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
71 72 73 74
: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
75 76
:logaccept-final-4 - [0:0]
:logaccept-final-5 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
77 78 79
:logdrop-0 - [0:0]
:logdrop-1 - [0:0]
:logdrop-10 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
80 81 82 83
:logdrop-11 - [0:0]
:logdrop-12 - [0:0]
:logdrop-13 - [0:0]
:logdrop-14 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
84 85 86 87 88 89 90 91 92 93 94 95
:logdrop-2 - [0:0]
: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
96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125
-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
126
-A FORWARD -m conntrack --ctstate ESTABLISHED -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
-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
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
-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
163 164 165
-A FORWARD -j ACCEPT
-A FORWARD -j logaccept-final-0
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
166
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
167 168
-A FORWARD -j logaccept-final-1
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
169
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
170 171
-A FORWARD -j logaccept-final-2
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
172
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
173 174
-A FORWARD -j logaccept-final-3
-A FORWARD -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
175 176 177 178 179 180 181 182
-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
-A FORWARD -j logdrop-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
183 184 185 186
-A FORWARD 
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
187 188
-A FORWARD -j logaccept-3
-A FORWARD -j logdrop-14
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
189
-A FORWARD -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
190 191 192
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
-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
218
-A FORWARD -p icmpv6 -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
-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
249 250
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
-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
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286
-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
287 288 289
-A INPUT -j ACCEPT
-A INPUT -j logaccept-final-0
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
290
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
291 292
-A INPUT -j logaccept-final-1
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
293
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
294 295
-A INPUT -j logaccept-final-2
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
296
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
297 298
-A INPUT -j logaccept-final-3
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
299 300 301 302 303 304 305 306
-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
-A INPUT -j ACCEPT
-A INPUT -j logdrop-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
307 308 309 310
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
311 312
-A INPUT -j logaccept-3
-A INPUT -j logdrop-14
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
313
-A INPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
314 315 316
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
317 318 319
-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
320 321
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
322
-A INPUT -p icmpv6 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
-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
353 354
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374
-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
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390
-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
391 392 393
-A OUTPUT -j ACCEPT
-A OUTPUT -j logaccept-final-0
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
394
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
395 396
-A OUTPUT -j logaccept-final-1
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
397
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
398 399
-A OUTPUT -j logaccept-final-2
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
400
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
401 402
-A OUTPUT -j logaccept-final-3
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
403 404 405 406 407 408 409 410
-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
-A OUTPUT -j ACCEPT
-A OUTPUT -j logdrop-13
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
411 412 413 414
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
415 416
-A OUTPUT -j logaccept-3
-A OUTPUT -j logdrop-14
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
417
-A OUTPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
418 419 420
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
421 422 423
-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
424 425
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d fc00::/7 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
426 427 428 429 430
-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
431 432 433 434
-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
435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457
-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
458 459 460
-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
461 462 463 464 465 466 467
-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
468 469 470
-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
471
-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
472
-A limit-24 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
473
-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
474
-A limit-25 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
475
-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
476 477 478
-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
479 480 481 482
-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
483 484
-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
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505
-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
506
-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
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
-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
530
-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
531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552
-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
553 554 555
-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
-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
556 557
-A limit-7 -m recent --name limit-7 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set 
-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
558
-A limit-8 -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
559 560 561
-A limit-8 -m recent --name limit-8 --rsource --mask ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff --set -j ACCEPT
-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
562 563 564 565 566 567
-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
568 569
-A logaccept-3 -m limit --limit 1/second -j LOG
-A logaccept-3 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
570 571 572 573 574 575 576 577
-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
578 579 580 581
-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
582 583 584 585 586 587
-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
588 589 590 591 592 593 594 595
-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
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619
-A logdrop-2 -m limit --limit 1/second -j LOG
-A logdrop-2 -j DROP
-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
620 621 622 623 624 625 626 627 628 629
*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
630 631 632 633
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A OUTPUT -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
634 635 636
-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
637
-A OUTPUT -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
638
-A PREROUTING -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
639 640 641
-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
642 643 644
-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
645
COMMIT