summaryrefslogtreecommitdiffstats
path: root/tests/expr-ct
blob: d464a949e2774cfc0a6d25fecf84c4aacfb85222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#! nft -f

add table ip filter
add chain ip filter output NF_INET_LOCAL_OUT 0

# ct: state
add rule ip filter output ct state 0 counter

# ct: direction original/reply
add rule ip filter output ct direction 0 counter
add rule ip filter output ct direction 1 counter

# ct: status
add rule ip filter output ct status 0 counter

# ct: mark
add rule ip filter output ct mark 0 counter

# ct: secmark
add rule ip filter output ct secmark 0 counter

# ct: expiration
add rule ip filter output ct expiration 30 counter

# ct: helper ftp
add rule ip filter output ct helper "ftp" counter