dump 42.6 KB
Newer Older
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Dnat 1                 {"in":["_fw","A"]}
(zone)                 
  inet/nat/OUTPUT      -j REDIRECT
  inet/nat/PREROUTING  -i eth0 -j REDIRECT

Dnat 2                 {"in":"B"}
(zone)                 
  inet/nat/PREROUTING  -i eth1 -s 10.0.0.0/12 -j REDIRECT


Filter 1                    {}
(log)                       
  inet/filter/FORWARD       -j ACCEPT
  inet/filter/INPUT         -j ACCEPT
  inet/filter/OUTPUT        -j ACCEPT
16 17
  inet6/filter/FORWARD      -j ACCEPT
  inet6/filter/INPUT        -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
18 19 20 21 22 23 24 25 26
  inet6/filter/OUTPUT       -j ACCEPT

Filter 2                    {"action":"drop"}
(log)                       
  inet/filter/FORWARD       -j logdrop-0
  inet/filter/INPUT         -j logdrop-0
  inet/filter/OUTPUT        -j logdrop-0
  inet/filter/logdrop-0     -m limit --limit 1/second -j LOG
  inet/filter/logdrop-0     -j DROP
27 28 29 30
  inet6/filter/FORWARD      -j logdrop-0
  inet6/filter/INPUT        -j logdrop-0
  inet6/filter/OUTPUT       -j logdrop-0
  inet6/filter/logdrop-0    -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
31 32 33 34 35 36 37
  inet6/filter/logdrop-0    -j DROP

Filter 3                    {"action":"pass"}
(log)                       
  inet/filter/FORWARD       
  inet/filter/INPUT         
  inet/filter/OUTPUT        
38 39
  inet6/filter/FORWARD      
  inet6/filter/INPUT        
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
40 41 42 43 44 45 46
  inet6/filter/OUTPUT       

Filter 4                    {"log":false}
(log)                       
  inet/filter/FORWARD       -j ACCEPT
  inet/filter/INPUT         -j ACCEPT
  inet/filter/OUTPUT        -j ACCEPT
47 48
  inet6/filter/FORWARD      -j ACCEPT
  inet6/filter/INPUT        -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
49 50 51 52 53 54 55
  inet6/filter/OUTPUT       -j ACCEPT

Filter 5                    {"action":"drop","log":false}
(log)                       
  inet/filter/FORWARD       -j DROP
  inet/filter/INPUT         -j DROP
  inet/filter/OUTPUT        -j DROP
56 57
  inet6/filter/FORWARD      -j DROP
  inet6/filter/INPUT        -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
58 59 60 61 62 63 64
  inet6/filter/OUTPUT       -j DROP

Filter 6                    {"action":"pass","log":false}
(log)                       
  inet/filter/FORWARD       
  inet/filter/INPUT         
  inet/filter/OUTPUT        
65 66
  inet6/filter/FORWARD      
  inet6/filter/INPUT        
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
67 68 69 70 71 72 73 74 75
  inet6/filter/OUTPUT       

Filter 7                    {"log":true}
(log)                       
  inet/filter/FORWARD       -j logaccept-0
  inet/filter/INPUT         -j logaccept-0
  inet/filter/OUTPUT        -j logaccept-0
  inet/filter/logaccept-0   -m limit --limit 1/second -j LOG
  inet/filter/logaccept-0   -j ACCEPT
76 77 78 79
  inet6/filter/FORWARD      -j logaccept-0
  inet6/filter/INPUT        -j logaccept-0
  inet6/filter/OUTPUT       -j logaccept-0
  inet6/filter/logaccept-0  -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
80 81 82 83 84 85 86 87 88
  inet6/filter/logaccept-0  -j ACCEPT

Filter 8                    {"action":"drop","log":true}
(log)                       
  inet/filter/FORWARD       -j logdrop-1
  inet/filter/INPUT         -j logdrop-1
  inet/filter/OUTPUT        -j logdrop-1
  inet/filter/logdrop-1     -m limit --limit 1/second -j LOG
  inet/filter/logdrop-1     -j DROP
89 90 91 92
  inet6/filter/FORWARD      -j logdrop-1
  inet6/filter/INPUT        -j logdrop-1
  inet6/filter/OUTPUT       -j logdrop-1
  inet6/filter/logdrop-1    -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
93 94 95 96 97 98 99 100
  inet6/filter/logdrop-1    -j DROP

Filter 9                    {"action":"pass","log":true}
(log)                       
  inet/filter/FORWARD       -j logpass-0
  inet/filter/INPUT         -j logpass-0
  inet/filter/OUTPUT        -j logpass-0
  inet/filter/logpass-0     -m limit --limit 1/second -j LOG
101 102 103
  inet6/filter/FORWARD      -j logpass-0
  inet6/filter/INPUT        -j logpass-0
  inet6/filter/OUTPUT       -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
104 105
  inet6/filter/logpass-0    -m limit --limit 1/second -j LOG

106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
Filter 10                   {"log":"dual"}
(log)                       
  inet/filter/FORWARD       -j logaccept-1
  inet/filter/INPUT         -j logaccept-1
  inet/filter/OUTPUT        -j logaccept-1
  inet/filter/logaccept-1   -j LOG
  inet/filter/logaccept-1   -j ACCEPT
  inet6/filter/FORWARD      -j logaccept-1
  inet6/filter/INPUT        -j logaccept-1
  inet6/filter/OUTPUT       -j logaccept-1
  inet6/filter/logaccept-1  -j LOG
  inet6/filter/logaccept-1  -j TEE --gateway fc00::1
  inet6/filter/logaccept-1  -j ACCEPT

Filter 11                   {"action":"drop","log":"dual"}
(log)                       
  inet/filter/FORWARD       -j logdrop-2
  inet/filter/INPUT         -j logdrop-2
  inet/filter/OUTPUT        -j logdrop-2
  inet/filter/logdrop-2     -j LOG
  inet/filter/logdrop-2     -j DROP
  inet6/filter/FORWARD      -j logdrop-2
  inet6/filter/INPUT        -j logdrop-2
  inet6/filter/OUTPUT       -j logdrop-2
  inet6/filter/logdrop-2    -j LOG
  inet6/filter/logdrop-2    -j TEE --gateway fc00::1
  inet6/filter/logdrop-2    -j DROP

Filter 12                   {"action":"pass","log":"dual"}
(log)                       
  inet/filter/FORWARD       -j logpass-1
  inet/filter/INPUT         -j logpass-1
  inet/filter/OUTPUT        -j logpass-1
  inet/filter/logpass-1     -j LOG
  inet6/filter/FORWARD      -j logpass-1
  inet6/filter/INPUT        -j logpass-1
  inet6/filter/OUTPUT       -j logpass-1
  inet6/filter/logpass-1    -j LOG
  inet6/filter/logpass-1    -j TEE --gateway fc00::1

Filter 13                   {"log":"mirror"}
(log)                       
  inet/filter/FORWARD       -j logaccept-2
  inet/filter/INPUT         -j logaccept-2
  inet/filter/OUTPUT        -j logaccept-2
  inet/filter/logaccept-2   -j TEE --gateway 10.0.0.1
  inet/filter/logaccept-2   -j TEE --gateway 10.0.0.2
  inet/filter/logaccept-2   -j ACCEPT
  inet6/filter/FORWARD      -j logaccept-2
  inet6/filter/INPUT        -j logaccept-2
  inet6/filter/OUTPUT       -j logaccept-2
  inet6/filter/logaccept-2  -j TEE --gateway fc00::2
  inet6/filter/logaccept-2  -j ACCEPT

Filter 14                   {"action":"drop","log":"mirror"}
(log)                       
  inet/filter/FORWARD       -j logdrop-3
  inet/filter/INPUT         -j logdrop-3
  inet/filter/OUTPUT        -j logdrop-3
  inet/filter/logdrop-3     -j TEE --gateway 10.0.0.1
  inet/filter/logdrop-3     -j TEE --gateway 10.0.0.2
  inet/filter/logdrop-3     -j DROP
  inet6/filter/FORWARD      -j logdrop-3
  inet6/filter/INPUT        -j logdrop-3
  inet6/filter/OUTPUT       -j logdrop-3
  inet6/filter/logdrop-3    -j TEE --gateway fc00::2
  inet6/filter/logdrop-3    -j DROP

Filter 15                   {"action":"pass","log":"mirror"}
(log)                       
  inet/filter/FORWARD       -j logpass-2
  inet/filter/INPUT         -j logpass-2
  inet/filter/OUTPUT        -j logpass-2
  inet/filter/logpass-2     -j TEE --gateway 10.0.0.1
  inet/filter/logpass-2     -j TEE --gateway 10.0.0.2
  inet6/filter/FORWARD      -j logpass-2
  inet6/filter/INPUT        -j logpass-2
  inet6/filter/OUTPUT       -j logpass-2
  inet6/filter/logpass-2    -j TEE --gateway fc00::2

Filter 16                   {"log":"none"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
187 188 189 190
(log)                       
  inet/filter/FORWARD       -j ACCEPT
  inet/filter/INPUT         -j ACCEPT
  inet/filter/OUTPUT        -j ACCEPT
191 192
  inet6/filter/FORWARD      -j ACCEPT
  inet6/filter/INPUT        -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
193 194
  inet6/filter/OUTPUT       -j ACCEPT

195
Filter 17                   {"action":"drop","log":"none"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
196 197 198 199
(log)                       
  inet/filter/FORWARD       -j DROP
  inet/filter/INPUT         -j DROP
  inet/filter/OUTPUT        -j DROP
200 201
  inet6/filter/FORWARD      -j DROP
  inet6/filter/INPUT        -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
202 203
  inet6/filter/OUTPUT       -j DROP

204
Filter 18                   {"action":"pass","log":"none"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
205 206 207 208
(log)                       
  inet/filter/FORWARD       
  inet/filter/INPUT         
  inet/filter/OUTPUT        
209 210
  inet6/filter/FORWARD      
  inet6/filter/INPUT        
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
211 212
  inet6/filter/OUTPUT       

213
Filter 19                   {"log":"ulog"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
214
(log)                       
215 216 217 218 219 220 221 222 223 224 225
  inet/filter/FORWARD       -j logaccept-3
  inet/filter/INPUT         -j logaccept-3
  inet/filter/OUTPUT        -j logaccept-3
  inet/filter/logaccept-3   -m limit --limit 12/minute -j ULOG
  inet/filter/logaccept-3   -j ACCEPT
  inet6/filter/FORWARD      -j logaccept-3
  inet6/filter/INPUT        -j logaccept-3
  inet6/filter/OUTPUT       -j logaccept-3
  inet6/filter/logaccept-3  -j ACCEPT

Filter 20                   {"action":"drop","log":"ulog"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
226
(log)                       
227 228 229 230 231 232 233 234 235 236 237
  inet/filter/FORWARD       -j logdrop-4
  inet/filter/INPUT         -j logdrop-4
  inet/filter/OUTPUT        -j logdrop-4
  inet/filter/logdrop-4     -m limit --limit 12/minute -j ULOG
  inet/filter/logdrop-4     -j DROP
  inet6/filter/FORWARD      -j logdrop-4
  inet6/filter/INPUT        -j logdrop-4
  inet6/filter/OUTPUT       -j logdrop-4
  inet6/filter/logdrop-4    -j DROP

Filter 21                   {"action":"pass","log":"ulog"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
238
(log)                       
239 240 241 242
  inet/filter/FORWARD       -j logpass-3
  inet/filter/INPUT         -j logpass-3
  inet/filter/OUTPUT        -j logpass-3
  inet/filter/logpass-3     -m limit --limit 12/minute -j ULOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
243

244
Filter 22                   {"action":"pass","in":"_fw","log":"ulog"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
245 246 247
(log)                       
  inet/filter/OUTPUT        -m limit --limit 12/minute -j ULOG

248
Filter 23                   {"in":"_fw","no-track":true,"service":"http"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
249
(no-track)                  
250
  inet/filter/INPUT         -p tcp --sport 80 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
251 252 253 254
  inet/filter/OUTPUT        -p tcp --dport 80 -j ACCEPT
  inet/raw/OUTPUT           -p tcp --dport 80 -j CT --notrack
  inet/raw/PREROUTING       -m addrtype --dst-type LOCAL -p tcp --sport 80 -j CT --notrack
  inet6/filter/INPUT        -p tcp --sport 80 -j ACCEPT
255 256 257
  inet6/filter/OUTPUT       -p tcp --dport 80 -j ACCEPT
  inet6/raw/OUTPUT          -p tcp --dport 80 -j CT --notrack
  inet6/raw/PREROUTING      -m addrtype --dst-type LOCAL -p tcp --sport 80 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
258

259
Filter 24                   {"dest":"172.17.0.0\/16","no-track":true,"service":"radius","src":"172.16.0.0\/16"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
260 261 262
(no-track)                  
  inet/filter/FORWARD       -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
  inet/filter/FORWARD       -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
263 264 265
  inet/filter/FORWARD       -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
  inet/filter/FORWARD       -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
  inet/filter/INPUT         -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
266
  inet/filter/INPUT         -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
267 268
  inet/filter/INPUT         -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
  inet/filter/INPUT         -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
269 270
  inet/filter/OUTPUT        -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
  inet/filter/OUTPUT        -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
271 272
  inet/filter/OUTPUT        -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
  inet/filter/OUTPUT        -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
273 274 275 276
  inet/raw/OUTPUT           -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
  inet/raw/OUTPUT           -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
  inet/raw/OUTPUT           -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
  inet/raw/OUTPUT           -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
277 278 279 280
  inet/raw/PREROUTING       -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
  inet/raw/PREROUTING       -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
  inet/raw/PREROUTING       -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
  inet/raw/PREROUTING       -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
281

282
Filter 25                   {"dest":"172.18.0.0\/16","no-track":true,"service":"ssh"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
283 284
(no-track)                  
  inet/filter/FORWARD       -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
285
  inet/filter/FORWARD       -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
286
  inet/filter/INPUT         -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
287
  inet/filter/INPUT         -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
288
  inet/filter/OUTPUT        -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
289
  inet/filter/OUTPUT        -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
290 291
  inet/raw/OUTPUT           -p tcp --dport 22 -d 172.18.0.0/16 -j CT --notrack
  inet/raw/OUTPUT           -p tcp --sport 22 -s 172.18.0.0/16 -j CT --notrack
292 293
  inet/raw/PREROUTING       -p tcp --dport 22 -d 172.18.0.0/16 -j CT --notrack
  inet/raw/PREROUTING       -p tcp --sport 22 -s 172.18.0.0/16 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
294

295
Filter 26                   {"no-track":true,"out":"_fw","service":"ipsec"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
296 297 298
(no-track)                  
  inet/filter/INPUT         -p esp -j ACCEPT
  inet/filter/INPUT         -p udp -m multiport --dports 500,4500 -j ACCEPT
299 300
  inet/filter/OUTPUT        -p esp -j ACCEPT
  inet/filter/OUTPUT        -p udp -m multiport --sports 500,4500 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
301 302
  inet/raw/OUTPUT           -p esp -j CT --notrack
  inet/raw/OUTPUT           -p udp -m multiport --sports 500,4500 -j CT --notrack
303 304 305 306
  inet/raw/PREROUTING       -m addrtype --dst-type LOCAL -p esp -j CT --notrack
  inet/raw/PREROUTING       -m addrtype --dst-type LOCAL -p udp -m multiport --dports 500,4500 -j CT --notrack
  inet6/filter/INPUT        -p esp -j ACCEPT
  inet6/filter/INPUT        -p udp -m multiport --dports 500,4500 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
307 308
  inet6/filter/OUTPUT       -p esp -j ACCEPT
  inet6/filter/OUTPUT       -p udp -m multiport --sports 500,4500 -j ACCEPT
309 310 311 312
  inet6/raw/OUTPUT          -p esp -j CT --notrack
  inet6/raw/OUTPUT          -p udp -m multiport --sports 500,4500 -j CT --notrack
  inet6/raw/PREROUTING      -m addrtype --dst-type LOCAL -p esp -j CT --notrack
  inet6/raw/PREROUTING      -m addrtype --dst-type LOCAL -p udp -m multiport --dports 500,4500 -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
313

314
Filter 27                   {"in":["_fw","A"]}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
315 316 317
(zone)                      
  inet/filter/FORWARD       -i eth0 -j ACCEPT
  inet/filter/INPUT         -i eth0 -j ACCEPT
318 319
  inet/filter/OUTPUT        -j ACCEPT
  inet6/filter/FORWARD      -i eth0 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
320
  inet6/filter/INPUT        -i eth0 -j ACCEPT
321
  inet6/filter/OUTPUT       -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
322

323
Filter 28                   {"in":"B","out":"C"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
324 325 326 327
(zone)                      
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT

328
Filter 29                   {"out":["_fw","B"]}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
329 330
(zone)                      
  inet/filter/FORWARD       -o eth1 -d 10.0.0.0/12 -j ACCEPT
331
  inet/filter/INPUT         -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
332 333
  inet/filter/OUTPUT        -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet6/filter/FORWARD      -o eth1 -d fc00::/7 -j ACCEPT
334
  inet6/filter/INPUT        -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
335 336
  inet6/filter/OUTPUT       -o eth1 -d fc00::/7 -j ACCEPT

337
Filter 30                   {"in":["A","B","C","D","E"],"out":["A","B","C","D","E"]}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
338 339 340 341 342 343 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 374 375 376 377 378 379 380 381 382 383
(zone)                      
  inet/filter/FORWARD       -i eth0 -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth0 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth0 -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth0 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth0 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth0 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth0 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth1 -s 10.0.0.0/12 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -o eth0 -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -o eth0 -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth2 -s 10.1.0.0/12 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -i eth3 -s 10.1.0.0/12 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth0 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth0 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth4 -j ACCEPT
  inet/filter/FORWARD       -i eth5 -o eth5 -j ACCEPT
  inet/filter/FORWARD       -i eth4 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -i eth5 -m policy --dir out --pol ipsec -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth0 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth1 -d 10.0.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth2 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth3 -d 10.1.0.0/12 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth4 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -o eth5 -j ACCEPT
  inet/filter/FORWARD       -m policy --dir in --pol ipsec -m policy --dir out --pol ipsec -j ACCEPT
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405
  inet6/filter/FORWARD      -i eth0 -o eth1 -d fc00::/7 -j ACCEPT
  inet6/filter/FORWARD      -i eth0 -o eth4 -j ACCEPT
  inet6/filter/FORWARD      -i eth0 -o eth5 -j ACCEPT
  inet6/filter/FORWARD      -i eth0 -m policy --dir out --pol ipsec -j ACCEPT
  inet6/filter/FORWARD      -i eth1 -s fc00::/7 -o eth0 -j ACCEPT
  inet6/filter/FORWARD      -i eth1 -s fc00::/7 -o eth4 -j ACCEPT
  inet6/filter/FORWARD      -i eth1 -s fc00::/7 -o eth5 -j ACCEPT
  inet6/filter/FORWARD      -i eth1 -s fc00::/7 -m policy --dir out --pol ipsec -j ACCEPT
  inet6/filter/FORWARD      -i eth4 -o eth0 -j ACCEPT
  inet6/filter/FORWARD      -i eth5 -o eth0 -j ACCEPT
  inet6/filter/FORWARD      -i eth4 -o eth1 -d fc00::/7 -j ACCEPT
  inet6/filter/FORWARD      -i eth5 -o eth1 -d fc00::/7 -j ACCEPT
  inet6/filter/FORWARD      -i eth4 -o eth4 -j ACCEPT
  inet6/filter/FORWARD      -i eth4 -o eth5 -j ACCEPT
  inet6/filter/FORWARD      -i eth5 -o eth4 -j ACCEPT
  inet6/filter/FORWARD      -i eth5 -o eth5 -j ACCEPT
  inet6/filter/FORWARD      -i eth4 -m policy --dir out --pol ipsec -j ACCEPT
  inet6/filter/FORWARD      -i eth5 -m policy --dir out --pol ipsec -j ACCEPT
  inet6/filter/FORWARD      -m policy --dir in --pol ipsec -o eth0 -j ACCEPT
  inet6/filter/FORWARD      -m policy --dir in --pol ipsec -o eth1 -d fc00::/7 -j ACCEPT
  inet6/filter/FORWARD      -m policy --dir in --pol ipsec -o eth4 -j ACCEPT
  inet6/filter/FORWARD      -m policy --dir in --pol ipsec -o eth5 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425
  inet6/filter/FORWARD      -m policy --dir in --pol ipsec -m policy --dir out --pol ipsec -j ACCEPT


Ipset awall-masquerade  {"family":"inet","type":"hash:net"}
(masquerade)            


Limit B  true
(limit)  

Limit C  7
(limit)  

Limit D  {"inet":22,"inet6":58}
(limit)  


Log _default  {"limit":1}
(defaults)    

426 427 428 429 430 431
Log dual      {"mirror":"fc00::1","mode":"log"}
(log)         

Log mirror    {"mirror":["10.0.0.1","10.0.0.2","fc00::2"]}
(log)         

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
432 433 434
Log nflog     {"group":1,"mode":"nflog","range":128}
(log)         

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
435 436 437
Log none      {"mode":"none"}
(log)         

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
438 439 440
Log ulog      {"limit":{"interval":5},"mode":"ulog"}
(log)         

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
441

442
Mark 1                      {"in":["_fw","A"],"mark":1}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
443
(zone)                      
444 445 446 447
  inet/mangle/OUTPUT        -j MARK --set-mark 1
  inet/mangle/PREROUTING    -i eth0 -j MARK --set-mark 1
  inet6/mangle/OUTPUT       -j MARK --set-mark 1
  inet6/mangle/PREROUTING   -i eth0 -j MARK --set-mark 1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
448

449
Mark 2                      {"in":"B","mark":2,"out":"C"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
450
(zone)                      
451 452
  inet/mangle/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
  inet/mangle/FORWARD       -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
453

454
Mark 3                      {"mark":3,"out":["_fw","B"]}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
455
(zone)                      
456 457 458 459
  inet/mangle/INPUT         -j MARK --set-mark 3
  inet/mangle/POSTROUTING   -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
  inet6/mangle/INPUT        -j MARK --set-mark 3
  inet6/mangle/POSTROUTING  -o eth1 -d fc00::/7 -j MARK --set-mark 3
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
460 461 462 463 464 465


No-track 1              {"in":["_fw","A"]}
(zone)                  
  inet/raw/OUTPUT       -j CT --notrack
  inet/raw/PREROUTING   -i eth0 -j CT --notrack
466
  inet6/raw/OUTPUT      -j CT --notrack
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
467 468 469 470 471 472 473 474 475 476 477 478 479
  inet6/raw/PREROUTING  -i eth0 -j CT --notrack

No-track 2              {"in":"B"}
(zone)                  
  inet/raw/PREROUTING   -i eth1 -s 10.0.0.0/12 -j CT --notrack
  inet6/raw/PREROUTING  -i eth1 -s fc00::/7 -j CT --notrack

No-track 3              {"out":"_fw"}
(zone)                  
  inet/raw/PREROUTING   -m addrtype --dst-type LOCAL -j CT --notrack
  inet6/raw/PREROUTING  -m addrtype --dst-type LOCAL -j CT --notrack


Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
480 481 482 483 484
Packet-log 1          {"out":"_fw"}
(log)                 
  inet/filter/INPUT   -m limit --limit 1/second -j LOG
  inet6/filter/INPUT  -m limit --limit 1/second -j LOG

485 486 487 488 489 490
Packet-log 2          {"log":"mirror","out":"_fw"}
(log)                 
  inet/filter/INPUT   -j TEE --gateway 10.0.0.1
  inet/filter/INPUT   -j TEE --gateway 10.0.0.2
  inet6/filter/INPUT  -j TEE --gateway fc00::2

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
491 492 493 494 495 496
Packet-log 3          {"log":"nflog","out":"_fw"}
(log)                 
  inet/filter/INPUT   -j NFLOG --nflog-group 1 --nflog-size 128
  inet6/filter/INPUT  -j NFLOG --nflog-group 1 --nflog-size 128

Packet-log 4          {"log":"ulog","out":"_fw"}
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
497 498 499 500
(log)                 
  inet/filter/INPUT   -m limit --limit 12/minute -j ULOG


Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605
Service babel         {"port":6697,"proto":"tcp"}
(services)            

Service bacula-dir    {"port":9101,"proto":"tcp"}
(services)            

Service bacula-fd     {"port":9102,"proto":"tcp"}
(services)            

Service bacula-sd     {"port":9103,"proto":"tcp"}
(services)            

Service bgp           {"port":179,"proto":"tcp"}
(services)            

Service dhcp          {"family":"inet","port":[67,68],"proto":"udp"}
(services)            

Service discard       [{"port":9,"proto":"udp"},{"port":9,"proto":"tcp"}]
(services)            

Service dns           [{"port":53,"proto":"udp"},{"port":53,"proto":"tcp"}]
(services)            

Service epmap         [{"port":135,"proto":"tcp"},{"port":135,"proto":"udp"}]
(services)            

Service ftp           {"ct-helper":"ftp","port":21,"proto":"tcp"}
(services)            

Service gre           {"proto":"gre"}
(services)            

Service hp-pdl        {"port":9100,"proto":"tcp"}
(services)            

Service http          {"port":80,"proto":"tcp"}
(services)            

Service http-alt      {"port":8080,"proto":"tcp"}
(services)            

Service https         {"port":443,"proto":"tcp"}
(services)            

Service icmp          {"proto":"icmp"}
(services)            

Service igmp          {"proto":"igmp"}
(services)            

Service imap          {"port":143,"proto":"tcp"}
(services)            

Service imaps         {"port":993,"proto":"tcp"}
(services)            

Service ipsec         [{"proto":"esp"},{"port":[500,4500],"proto":"udp"}]
(services)            

Service irc           {"ct-helper":"irc","port":6667,"proto":"tcp"}
(services)            

Service kerberos      [{"port":88,"proto":"tcp"},{"port":88,"proto":"udp"}]
(services)            

Service kpasswd       [{"port":464,"proto":"tcp"},{"port":464,"proto":"udp"}]
(services)            

Service l2tp          {"port":1701,"proto":"udp"}
(services)            

Service ldap          [{"port":389,"proto":"tcp"},{"port":389,"proto":"udp"}]
(services)            

Service ldaps         [{"port":636,"proto":"tcp"},{"port":636,"proto":"udp"}]
(services)            

Service microsoft-ds  [{"port":445,"proto":"tcp"},{"port":445,"proto":"udp"}]
(services)            

Service ms-sql-m      {"port":1434,"proto":"tcp"}
(services)            

Service ms-sql-s      {"port":1433,"proto":"tcp"}
(services)            

Service msft-gc       [{"port":3268,"proto":"tcp"},{"port":3268,"proto":"udp"}]
(services)            

Service msft-gc-ssl   [{"port":3269,"proto":"tcp"},{"port":3269,"proto":"udp"}]
(services)            

Service netbios-ds    [{"port":138,"proto":"tcp"},{"port":138,"proto":"udp"}]
(services)            

Service netbios-ns    [{"family":"inet","port":137,"proto":"tcp"},{"ct-helper":"netbios-ns","family":"inet","port":137,"proto":"udp"}]
(services)            

Service netbios-ssn   [{"port":139,"proto":"tcp"},{"port":139,"proto":"udp"}]
(services)            

Service ntp           {"port":123,"proto":"udp"}
(services)            

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
606 607 608
Service openvpn       {"port":1194,"proto":"udp"}
(services)            

Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718
Service ospf          {"proto":"ospf"}
(services)            

Service pgsql         {"port":5432,"proto":"tcp"}
(services)            

Service ping          [{"proto":"icmp","reply-type":0,"type":8},{"proto":"icmpv6","reply-type":129,"type":128}]
(services)            

Service pop3          {"port":110,"proto":"tcp"}
(services)            

Service pop3s         {"port":995,"proto":"tcp"}
(services)            

Service radius        [{"port":1812,"proto":"udp"},{"port":1812,"proto":"tcp"}]
(services)            

Service radius-acct   [{"port":1813,"proto":"udp"},{"port":1813,"proto":"tcp"}]
(services)            

Service rdp           {"port":3389,"proto":"tcp"}
(services)            

Service rsync         {"port":873,"proto":"tcp"}
(services)            

Service rtmp          {"port":1935,"proto":"tcp"}
(services)            

Service rtsp          {"port":554,"proto":"tcp"}
(services)            

Service sieve         {"port":4190,"proto":"tcp"}
(services)            

Service sip           [{"ct-helper":"sip","port":5060,"proto":"udp"},{"ct-helper":"sip","port":5060,"proto":"tcp"}]
(services)            

Service sip-tls       [{"port":5061,"proto":"udp"},{"port":5061,"proto":"tcp"}]
(services)            

Service smtp          {"port":25,"proto":"tcp"}
(services)            

Service snmp          {"port":161,"proto":"udp"}
(services)            

Service snmp-trap     {"port":162,"proto":"udp"}
(services)            

Service ssh           {"port":22,"proto":"tcp"}
(services)            

Service submission    {"port":587,"proto":"tcp"}
(services)            

Service syslog        {"port":514,"proto":"udp"}
(services)            

Service telnet        {"port":23,"proto":"tcp"}
(services)            

Service teredo        {"port":3544,"proto":"udp"}
(services)            

Service tftp          {"port":69,"proto":"udp"}
(services)            

Service vnc           {"port":5900,"proto":"tcp"}
(services)            


Snat 1                  {"out":["_fw","B"]}
(zone)                  
  inet/nat/INPUT        -j MASQUERADE
  inet/nat/POSTROUTING  -o eth1 -d 10.0.0.0/12 -j MASQUERADE


Variable awall_tproxy_mark  1
(defaults)                  


Zone A  {"iface":"eth0"}
(zone)  

Zone B  {"addr":["10.0.0.0\/12","fc00::\/7"],"iface":"eth1"}
(zone)  

Zone C  {"addr":"10.1.0.0\/12","iface":["eth2","eth3"]}
(zone)  

Zone D  {"iface":["eth4","eth5"],"route-back":true}
(zone)  

Zone E  {"ipsec":true}
(zone)  


# ipset awall-masquerade
hash:net family inet


# rules-save generated by awall
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT DROP [0:0]
:icmp-routing - [0:0]
:logaccept-0 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
719
:logaccept-1 - [0:0]
720 721
:logaccept-2 - [0:0]
:logaccept-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
722 723
:logdrop-0 - [0:0]
:logdrop-1 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
724
:logdrop-2 - [0:0]
725 726
:logdrop-3 - [0:0]
:logdrop-4 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
727
:logpass-0 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
728
:logpass-1 - [0:0]
729 730
:logpass-2 - [0:0]
:logpass-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
731 732 733 734 735 736 737 738 739 740
-A FORWARD -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A FORWARD -j ACCEPT
-A FORWARD -j logdrop-0
-A FORWARD 
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
-A FORWARD -j logaccept-0
-A FORWARD -j logdrop-1
-A FORWARD -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
741 742 743
-A FORWARD -j logaccept-1
-A FORWARD -j logdrop-2
-A FORWARD -j logpass-1
744 745 746 747 748 749 750 751 752
-A FORWARD -j logaccept-2
-A FORWARD -j logdrop-3
-A FORWARD -j logpass-2
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
-A FORWARD -j logaccept-3
-A FORWARD -j logdrop-4
-A FORWARD -j logpass-3
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808
-A FORWARD -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A FORWARD -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A FORWARD -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A FORWARD -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A FORWARD -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
-A FORWARD -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
-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
-A FORWARD -p icmp -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
809
-A INPUT -m limit --limit 12/minute -j ULOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
810
-A INPUT -j NFLOG --nflog-group 1 --nflog-size 128
811 812
-A INPUT -j TEE --gateway 10.0.0.2
-A INPUT -j TEE --gateway 10.0.0.1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
813
-A INPUT -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
814 815 816 817 818 819 820 821 822 823 824
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -j logdrop-0
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
-A INPUT -j logaccept-0
-A INPUT -j logdrop-1
-A INPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
825 826 827
-A INPUT -j logaccept-1
-A INPUT -j logdrop-2
-A INPUT -j logpass-1
828 829 830 831 832 833 834 835 836
-A INPUT -j logaccept-2
-A INPUT -j logdrop-3
-A INPUT -j logpass-2
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
-A INPUT -j logaccept-3
-A INPUT -j logdrop-4
-A INPUT -j logpass-3
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859
-A INPUT -p tcp --sport 80 -j ACCEPT
-A INPUT -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A INPUT -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A INPUT -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A INPUT -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
-A INPUT -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
-A INPUT -p esp -j ACCEPT
-A INPUT -p udp -m multiport --dports 500,4500 -j ACCEPT
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -p icmp -j icmp-routing
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT -j logdrop-0
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
-A OUTPUT -j logaccept-0
-A OUTPUT -j logdrop-1
-A OUTPUT -j logpass-0
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
860 861 862
-A OUTPUT -j logaccept-1
-A OUTPUT -j logdrop-2
-A OUTPUT -j logpass-1
863 864 865 866 867 868 869 870 871
-A OUTPUT -j logaccept-2
-A OUTPUT -j logdrop-3
-A OUTPUT -j logpass-2
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
-A OUTPUT -j logaccept-3
-A OUTPUT -j logdrop-4
-A OUTPUT -j logpass-3
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
872
-A OUTPUT -m limit --limit 12/minute -j ULOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889
-A OUTPUT -p tcp --dport 80 -j ACCEPT
-A OUTPUT -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j ACCEPT
-A OUTPUT -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A OUTPUT -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j ACCEPT
-A OUTPUT -p tcp --dport 22 -d 172.18.0.0/16 -j ACCEPT
-A OUTPUT -p tcp --sport 22 -s 172.18.0.0/16 -j ACCEPT
-A OUTPUT -p esp -j ACCEPT
-A OUTPUT -p udp -m multiport --sports 500,4500 -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d 10.0.0.0/12 -j ACCEPT
-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
-A logaccept-0 -m limit --limit 1/second -j LOG
-A logaccept-0 -j ACCEPT
890
-A logaccept-1 -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
891
-A logaccept-1 -j ACCEPT
892 893 894 895 896
-A logaccept-2 -j TEE --gateway 10.0.0.1
-A logaccept-2 -j TEE --gateway 10.0.0.2
-A logaccept-2 -j ACCEPT
-A logaccept-3 -m limit --limit 12/minute -j ULOG
-A logaccept-3 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
897 898 899 900
-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
901
-A logdrop-2 -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
902
-A logdrop-2 -j DROP
903 904 905 906 907
-A logdrop-3 -j TEE --gateway 10.0.0.1
-A logdrop-3 -j TEE --gateway 10.0.0.2
-A logdrop-3 -j DROP
-A logdrop-4 -m limit --limit 12/minute -j ULOG
-A logdrop-4 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
908
-A logpass-0 -m limit --limit 1/second -j LOG
909 910 911 912
-A logpass-1 -j LOG
-A logpass-2 -j TEE --gateway 10.0.0.1
-A logpass-2 -j TEE --gateway 10.0.0.2
-A logpass-3 -m limit --limit 12/minute -j ULOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
913 914 915 916 917 918 919
COMMIT
*mangle
:FORWARD ACCEPT [0:0]
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
920 921 922 923 924 925
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth2 -d 10.1.0.0/12 -j MARK --set-mark 2
-A FORWARD -i eth1 -s 10.0.0.0/12 -o eth3 -d 10.1.0.0/12 -j MARK --set-mark 2
-A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974
COMMIT
*nat
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
:awall-masquerade - [0:0]
-A INPUT -j MASQUERADE
-A OUTPUT -j REDIRECT
-A POSTROUTING -o eth1 -d 10.0.0.0/12 -j MASQUERADE
-A POSTROUTING -m set --match-set awall-masquerade src -j awall-masquerade
-A PREROUTING -i eth0 -j REDIRECT
-A PREROUTING -i eth1 -s 10.0.0.0/12 -j REDIRECT
-A awall-masquerade -m set ! --match-set awall-masquerade dst -j MASQUERADE
COMMIT
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-A OUTPUT -p tcp --dport 80 -j CT --notrack
-A OUTPUT -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
-A OUTPUT -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
-A OUTPUT -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
-A OUTPUT -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
-A OUTPUT -p tcp --dport 22 -d 172.18.0.0/16 -j CT --notrack
-A OUTPUT -p tcp --sport 22 -s 172.18.0.0/16 -j CT --notrack
-A OUTPUT -p esp -j CT --notrack
-A OUTPUT -p udp -m multiport --sports 500,4500 -j CT --notrack
-A OUTPUT -j CT --notrack
-A PREROUTING -m addrtype --dst-type LOCAL -p tcp --sport 80 -j CT --notrack
-A PREROUTING -p tcp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
-A PREROUTING -p udp --dport 1812 -s 172.16.0.0/16 -d 172.17.0.0/16 -j CT --notrack
-A PREROUTING -p tcp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
-A PREROUTING -p udp --sport 1812 -d 172.16.0.0/16 -s 172.17.0.0/16 -j CT --notrack
-A PREROUTING -p tcp --dport 22 -d 172.18.0.0/16 -j CT --notrack
-A PREROUTING -p tcp --sport 22 -s 172.18.0.0/16 -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
-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
COMMIT

# rules6-save generated by awall
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT DROP [0:0]
:icmp-routing - [0:0]
:logaccept-0 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
975
:logaccept-1 - [0:0]
976 977
:logaccept-2 - [0:0]
:logaccept-3 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
978 979
:logdrop-0 - [0:0]
:logdrop-1 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
980
:logdrop-2 - [0:0]
981 982
:logdrop-3 - [0:0]
:logdrop-4 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
983
:logpass-0 - [0:0]
984 985
:logpass-1 - [0:0]
:logpass-2 - [0:0]
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
986 987 988 989 990 991 992 993 994 995
-A FORWARD -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A FORWARD -j ACCEPT
-A FORWARD -j logdrop-0
-A FORWARD 
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
-A FORWARD -j logaccept-0
-A FORWARD -j logdrop-1
-A FORWARD -j logpass-0
996 997 998 999 1000 1001
-A FORWARD -j logaccept-1
-A FORWARD -j logdrop-2
-A FORWARD -j logpass-1
-A FORWARD -j logaccept-2
-A FORWARD -j logdrop-3
-A FORWARD -j logpass-2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1002 1003 1004
-A FORWARD -j ACCEPT
-A FORWARD -j DROP
-A FORWARD 
1005 1006
-A FORWARD -j logaccept-3
-A FORWARD -j logdrop-4
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032
-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
-A FORWARD -p icmpv6 -j icmp-routing
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1033
-A INPUT -j NFLOG --nflog-group 1 --nflog-size 128
1034
-A INPUT -j TEE --gateway fc00::2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1035
-A INPUT -m limit --limit 1/second -j LOG
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
-A INPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -j logdrop-0
-A INPUT 
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
-A INPUT -j logaccept-0
-A INPUT -j logdrop-1
-A INPUT -j logpass-0
1047 1048 1049 1050 1051 1052
-A INPUT -j logaccept-1
-A INPUT -j logdrop-2
-A INPUT -j logpass-1
-A INPUT -j logaccept-2
-A INPUT -j logdrop-3
-A INPUT -j logpass-2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1053 1054 1055
-A INPUT -j ACCEPT
-A INPUT -j DROP
-A INPUT 
1056 1057
-A INPUT -j logaccept-3
-A INPUT -j logdrop-4
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074
-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
-A INPUT -i eth0 -j ACCEPT
-A INPUT -j ACCEPT
-A INPUT -p icmpv6 -j ACCEPT
-A OUTPUT -m conntrack --ctstate ESTABLISHED -j ACCEPT
-A OUTPUT -o lo -j ACCEPT
-A OUTPUT -j ACCEPT
-A OUTPUT -j logdrop-0
-A OUTPUT 
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
-A OUTPUT -j logaccept-0
-A OUTPUT -j logdrop-1
-A OUTPUT -j logpass-0
1075 1076 1077 1078 1079 1080
-A OUTPUT -j logaccept-1
-A OUTPUT -j logdrop-2
-A OUTPUT -j logpass-1
-A OUTPUT -j logaccept-2
-A OUTPUT -j logdrop-3
-A OUTPUT -j logpass-2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1081 1082 1083
-A OUTPUT -j ACCEPT
-A OUTPUT -j DROP
-A OUTPUT 
1084 1085
-A OUTPUT -j logaccept-3
-A OUTPUT -j logdrop-4
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097
-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
-A OUTPUT -j ACCEPT
-A OUTPUT -o eth1 -d fc00::/7 -j ACCEPT
-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
-A logaccept-0 -m limit --limit 1/second -j LOG
-A logaccept-0 -j ACCEPT
1098 1099
-A logaccept-1 -j LOG
-A logaccept-1 -j TEE --gateway fc00::1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1100
-A logaccept-1 -j ACCEPT
1101 1102 1103
-A logaccept-2 -j TEE --gateway fc00::2
-A logaccept-2 -j ACCEPT
-A logaccept-3 -j ACCEPT
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1104 1105 1106 1107
-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
1108 1109
-A logdrop-2 -j LOG
-A logdrop-2 -j TEE --gateway fc00::1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1110
-A logdrop-2 -j DROP
1111 1112 1113
-A logdrop-3 -j TEE --gateway fc00::2
-A logdrop-3 -j DROP
-A logdrop-4 -j DROP
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1114
-A logpass-0 -m limit --limit 1/second -j LOG
1115 1116 1117
-A logpass-1 -j LOG
-A logpass-1 -j TEE --gateway fc00::1
-A logpass-2 -j TEE --gateway fc00::2
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1118 1119 1120 1121 1122 1123
COMMIT
*mangle
:INPUT ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
1124 1125 1126 1127
-A INPUT -j MARK --set-mark 3
-A OUTPUT -j MARK --set-mark 1
-A POSTROUTING -o eth1 -d fc00::/7 -j MARK --set-mark 3
-A PREROUTING -i eth0 -j MARK --set-mark 1
Kaarle Ritvanen's avatar
Kaarle Ritvanen committed
1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143
COMMIT
*raw
:OUTPUT ACCEPT [0:0]
:PREROUTING ACCEPT [0:0]
-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
-A OUTPUT -j CT --notrack
-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
-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
COMMIT