summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_objects_0
blob: 7437c77beb0b47ab35c9c2af07f4896bb28d297b (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash

EXPECTED='table ip filter {
	quota q {
		over 1200 bytes
		comment "test1"
	}

	counter c {
		packets 0 bytes 0
		comment "test2"
	}

	ct helper h {
		type "sip" protocol tcp
		l3proto ip
		comment "test3"
	}

	ct expectation e {
		protocol tcp
		dport 666
		timeout 100ms
		size 96
		l3proto ip
		comment "test4"
	}

	limit l {
		rate 400/hour
		comment "test5"
	}

	synproxy s {
		mss 1460
		wscale 2
		comment "test6"
	}
}
'

set -e

$NFT -f - <<< "$EXPECTED"