Debian Codegraph @

test/60-conntrack/foomuuri.conf

raw
1 zone {
2 localhost
3 public
4 }
5
6 localhost-public {
7 # pre-ct: log and count traffic, don't accept yet
8 log "outgoing" # plain rule, implicit -conntrack and continue
9 log "outgoing_2" continue -conntrack # same as above rule
10 counter all_out # plain rule, implicit -conntrack and continue
11 counter all_out_2 continue -conntrack # same as above rule
12 tcp sport 22 counter ssh_out continue -conntrack
13
14 # post-ct: normal rules
15 ssh
16 https counter new_https # post-ct, so counts only new, not established
17 log "post-ct,pre-reject" continue conntrack
18 reject
19 }
20
21 public-localhost {
22 # pre-ct: log and count traffic, don't accept yet
23 log "incoming"
24 log "incoming_2" continue -conntrack
25 counter all_in
26 counter all_in_2 continue -conntrack
27 tcp dport 22 counter ssh_in continue -conntrack
28
29 # Generic rule to accept all DNAT'ed traffic
30 ct_status dnat
31
32 # post-ct: normal rules
33 ssh
34 drop
35 }
36
37 # Incoming traffic
38 prerouting filter raw {
39 domain notrack
40 tcp sport 53 notrack
41 udp sport 53 notrack
42 }
43
44 # Locally created traffic
45 output filter raw {
46 domain notrack
47 tcp sport 53 notrack
48 udp sport 53 notrack
49 }