summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/transactions/0048helpers_0
blob: 675a977ef4a137b66d412f115c5ca3da3ced2fec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

RULESET='add table ip filter
add chain ip filter filter { type filter hook prerouting priority mangle; policy accept; }
add ct helper ip filter ftp { type "ftp" protocol tcp; };
add rule ip filter filter tcp dport 33 ct helper set "ftp"'

set -e
$NFT -f - <<< "$RULESET"

RULESET='flush chain ip filter filter
delete chain filter filter
delete ct helper ip filter ftp'

$NFT -f - <<< "$RULESET"