summaryrefslogtreecommitdiffstats
path: root/tests/expr-ct
blob: 8391c3ec1f6123f19ecbc348838032eba2e58063 (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

table add ip filter
chain add ip filter output NF_INET_LOCAL_OUT 0

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

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

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

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

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

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

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