summaryrefslogtreecommitdiffstats
path: root/tests/expr-ct
blob: 39f1777ceb8e355f345fdb2bd0c4fd5a8ab25d84 (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 { hook NF_INET_LOCAL_OUT 0 ; }

# ct: state
add rule ip filter output ct state new,established counter

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

# ct: status
add rule ip filter output ct status expected 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