blob: 9313c302048c2c2ff422c8089fd44b3998b7e8f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
set -e
RULESET="table inet x {
chain y {
ip saddr 1.2.3.4 tcp dport 80 meta mark set 10 accept
ip saddr 1.2.3.4 tcp dport 81 meta mark set 11 accept
ip saddr 1.2.3.5 tcp dport 81 accept comment \"test\"
ip saddr 1.2.3.5 tcp dport 82 accept
}
}"
$NFT -o -f - <<< $RULESET
|