summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optimizations/merge_stmts_vmap
blob: 6e0f0762b7bb4dc616a045b4f8d602035f6f33c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

set -e

RULESET="table ip x {
	chain y {
		ct state invalid drop
		ct state established,related accept
	}
	chain z {
		tcp dport { 1 } accept
		tcp dport 2-3 drop
		tcp dport 4 accept
	}
	chain w {
		ip saddr 1.1.1.1 counter accept
		ip saddr 1.1.1.2 counter drop
	}
}"

$NFT -o -f - <<< $RULESET