Debian Codegraph @

tests/shell/testcases/transactions/0048helpers_0

raw
1 #!/bin/bash
2
3 RULESET='add table ip filter
4 add chain ip filter filter { type filter hook prerouting priority mangle; policy accept; }
5 add ct helper ip filter ftp { type "ftp" protocol tcp; };
6 add rule ip filter filter tcp dport 33 ct helper set "ftp"'
7
8 set -e
9 $NFT -f - <<< "$RULESET"
10
11 RULESET='flush chain ip filter filter
12 delete chain filter filter
13 delete ct helper ip filter ftp'
14
15 $NFT -f - <<< "$RULESET"