blob: 8f2e57b9b3c3b6da17d584e63ab759853fcca67e (
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
27
|
#!/bin/bash
# Tests use of variables in priority specification
set -e
RULESET="
define pri = 10
define post = -10
define for = \"filter - 100\"
table inet global {
chain prerouting {
type filter hook prerouting priority \$pri
policy accept
}
chain forward {
type filter hook prerouting priority \$for
policy accept
}
chain postrouting {
type filter hook postrouting priority \$post
policy accept
}
}"
$NFT -f - <<< "$RULESET"
|