rules-save 25.9 KB
Newer Older
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1 2 3 4 5 6
# rules-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 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241
-A FORWARD -i eth0 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -o eth1 -d 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth0 -o eth1 -d 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth0 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth0 -o eth3 -d 10.1.0.0/12 -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 10.0.0.0/12 -o eth0 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth4 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth5 -j ACCEPT
-A FORWARD -i eth1 -s 10.0.0.0/12 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -o eth0 -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -o eth0 -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -o eth1 -d 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -o eth1 -d 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -o eth4 -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -o eth5 -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -o eth4 -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -o eth5 -j ACCEPT
-A FORWARD -i eth2 -s 10.1.0.0/12 -m policy --dir out --pol ipsec -j ACCEPT
-A FORWARD -i eth3 -s 10.1.0.0/12 -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 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth5 -o eth1 -d 10.0.0.0/12 -j ACCEPT
-A FORWARD -i eth4 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth4 -o eth3 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth5 -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -i eth5 -o eth3 -d 10.1.0.0/12 -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 10.0.0.0/12 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth2 -d 10.1.0.0/12 -j ACCEPT
-A FORWARD -m policy --dir in --pol ipsec -o eth3 -d 10.1.0.0/12 -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
242
-A FORWARD -p icmp -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272
-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
273 274
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294
-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
295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310
-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
311 312 313
-A INPUT -j ACCEPT
-A INPUT -j logaccept-final-0
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
314
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
315 316
-A INPUT -j logaccept-final-1
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
317
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
318 319
-A INPUT -j logaccept-final-2
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
320
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
321 322
-A INPUT -j logaccept-final-3
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
323 324 325 326 327 328 329 330
-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
331 332 333 334
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
335 336
-A INPUT -j logaccept-3
-A INPUT -j logdrop-14
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
337
-A INPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
338 339 340
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
341 342
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
343
-A INPUT -p icmp -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
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 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
374 375
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395
-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
396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
-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
412 413 414
-A OUTPUT -j ACCEPT
-A OUTPUT -j logaccept-final-0
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
415
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
416 417
-A OUTPUT -j logaccept-final-1
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
418
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
419 420
-A OUTPUT -j logaccept-final-2
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
421
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
422 423
-A OUTPUT -j logaccept-final-3
-A OUTPUT -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
424 425 426 427 428 429 430 431
-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
432 433 434 435
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
436 437
-A OUTPUT -j logaccept-3
-A OUTPUT -j logdrop-14
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
438
-A OUTPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
439 440 441
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
442 443
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d 10.0.0.0/12 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
444 445 446 447
-A OUTPUT -p icmp -j icmp-routing
-A icmp-routing -p icmp --icmp-type 3 -j ACCEPT
-A icmp-routing -p icmp --icmp-type 11 -j ACCEPT
-A icmp-routing -p icmp --icmp-type 12 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
448 449 450 451
-A limit-0 -m recent --name limit-0 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-1
-A limit-0 -m recent --name limit-0 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-1 -m recent --name limit-1 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-2
-A limit-1 -m recent --name limit-1 --rsource --mask 255.255.255.255 --set 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474
-A limit-10 -m recent --name limit-10 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-10 -m recent --name limit-10 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-11 -m recent --name limit-11 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-11 -m recent --name limit-11 --rsource --mask 255.255.255.255 --set 
-A limit-12 -m recent --name limit-12 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-12 -m recent --name limit-12 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-13 -m recent --name limit-13 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-13 -m recent --name limit-13 --rsource --mask 255.255.255.255 --set 
-A limit-14 -m recent --name limit-14 --rsource --mask 255.255.255.255 --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 255.255.255.255 --set -j ACCEPT
-A limit-15 -m recent --name limit-15 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-15 -m recent --name limit-15 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
-A limit-16 -m recent --name limit-16 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-16 -m recent --name limit-16 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-17 -m recent --name limit-17 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-17 -m recent --name limit-17 --rsource --mask 255.255.255.255 --set 
-A limit-18 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --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 32 --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
475 476 477
-A limit-2 -m recent --name limit-2 --rsource --mask 255.255.255.255 --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 255.255.255.255 --set -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
478 479 480 481 482 483 484
-A limit-20 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --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 32 --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 32 --hashlimit-name limit-22 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
485 486 487
-A limit-22 -j DROP
-A limit-23 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name limit-23 -j RETURN
-A limit-23 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
488
-A limit-24 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name limit-24 -j logaccept-1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
489
-A limit-24 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
490
-A limit-25 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name limit-25 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
491
-A limit-25 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
492
-A limit-26 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name limit-26 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
493 494 495
-A limit-26 -j DROP
-A limit-27 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --hashlimit-name limit-27 -j RETURN
-A limit-27 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
496 497 498 499
-A limit-28 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --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 32 --hashlimit-name limit-29 -j ACCEPT
-A limit-29 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
500 501
-A limit-3 -m recent --name limit-3 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-4
-A limit-3 -m recent --name limit-3 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522
-A limit-30 -m recent --name limit-30 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-7
-A limit-30 -m recent --name limit-30 --rsource --mask 255.255.255.255 --set 
-A limit-31 -m recent --name limit-31 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-8
-A limit-31 -m recent --name limit-31 --rsource --mask 255.255.255.255 --set 
-A limit-32 -m recent --name limit-32 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-9
-A limit-32 -m recent --name limit-32 --rsource --mask 255.255.255.255 --set 
-A limit-33 -m recent --name limit-33 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-10
-A limit-33 -m recent --name limit-33 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
-A limit-34 -m recent --name limit-34 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-11
-A limit-34 -m recent --name limit-34 --rsource --mask 255.255.255.255 --set 
-A limit-35 -m recent --name limit-35 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-12
-A limit-35 -m recent --name limit-35 --rsource --mask 255.255.255.255 --set 
-A limit-36 -m recent --name limit-36 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-36 -m recent --name limit-36 --rsource --mask 255.255.255.255 --set 
-A limit-37 -m recent --name limit-37 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-37 -m recent --name limit-37 --rsource --mask 255.255.255.255 --set 
-A limit-38 -m recent --name limit-38 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-38 -m recent --name limit-38 --rsource --mask 255.255.255.255 --set 
-A limit-39 -m recent --name limit-39 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-39 -m recent --name limit-39 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
-A limit-4 -m recent --name limit-4 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-5
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
523
-A limit-4 -m recent --name limit-4 --rsource --mask 255.255.255.255 --set -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546
-A limit-40 -m recent --name limit-40 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-40 -m recent --name limit-40 --rsource --mask 255.255.255.255 --set 
-A limit-41 -m recent --name limit-41 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-41 -m recent --name limit-41 --rsource --mask 255.255.255.255 --set 
-A limit-42 -m recent --name limit-42 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-42 -m recent --name limit-42 --rsource --mask 255.255.255.255 --set 
-A limit-43 -m recent --name limit-43 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-43 -m recent --name limit-43 --rsource --mask 255.255.255.255 --set 
-A limit-44 -m recent --name limit-44 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-44 -m recent --name limit-44 --rsource --mask 255.255.255.255 --set 
-A limit-45 -m recent --name limit-45 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-45 -m recent --name limit-45 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
-A limit-46 -m recent --name limit-46 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-46 -m recent --name limit-46 --rsource --mask 255.255.255.255 --set 
-A limit-47 -m recent --name limit-47 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-47 -m recent --name limit-47 --rsource --mask 255.255.255.255 --set 
-A limit-48 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --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 32 --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 255.255.255.255 --update --hitcount 1 --seconds 1 -j logdrop-6
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
547
-A limit-5 -m recent --name limit-5 --rsource --mask 255.255.255.255 --set 
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569
-A limit-50 -m hashlimit --hashlimit-upto 30/second --hashlimit-burst 30 --hashlimit-mode srcip --hashlimit-srcmask 32 --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 32 --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 32 --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 32 --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 32 --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 32 --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 32 --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 32 --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 32 --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 32 --hashlimit-name limit-59 -j RETURN
-A limit-59 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
570 571 572
-A limit-6 -m recent --name limit-6 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-6 -m recent --name limit-6 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-7 -m recent --name limit-7 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
573 574
-A limit-7 -m recent --name limit-7 --rsource --mask 255.255.255.255 --set 
-A limit-8 -m recent --name limit-8 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
575
-A limit-8 -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
576 577 578
-A limit-8 -m recent --name limit-8 --rsource --mask 255.255.255.255 --set -j ACCEPT
-A limit-9 -m recent --name limit-9 --rsource --mask 255.255.255.255 --update --hitcount 1 --seconds 1 -j DROP
-A limit-9 -m recent --name limit-9 --rsource --mask 255.255.255.255 --set -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
579 580 581 582 583 584
-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
585 586
-A logaccept-3 -m limit --limit 1/second -j LOG
-A logaccept-3 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
587 588 589 590 591 592 593 594
-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
595 596 597 598
-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
599 600 601 602 603 604
-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
605 606 607 608 609 610 611 612
-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
613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635
-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
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
636
COMMIT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
637 638 639 640 641 642 643 644 645 646 647 648 649
*mangle
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 1
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 1
-A INPUT -j MARK --set-mark 2
-A OUTPUT -j MARK --set-mark 0
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 2
-A PREROUTING -i eth0 -j MARK --set-mark 0
COMMIT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
650
*nat
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
651 652
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
653
:POSTROUTING ACCEPT [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
654
:PREROUTING ACCEPT [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
655
:awall-masquerade - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
656 657 658
-A INPUT -j MASQUERADE
-A OUTPUT -j REDIRECT
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MASQUERADE
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
659
-A POSTROUTING -m set --match-set awall-masquerade src -j awall-masquerade
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
660 661
-A PREROUTING -i eth0 -j REDIRECT
-A PREROUTING -i eth1 -s 10.0.0.0/12 -j REDIRECT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
662 663
-A awall-masquerade -m set ! --match-set awall-masquerade dst -j MASQUERADE
COMMIT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
664 665 666 667
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A OUTPUT -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
668
-A OUTPUT -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
669
-A PREROUTING -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
670 671 672
-A PREROUTING -i eth0 -j CT --notrack
-A PREROUTING -i eth1 -s 10.0.0.0/12 -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
673
COMMIT