summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/sets/0062set_connlimit_0
blob: 48d589fe68cc3b90b46e331200ffb06a669382bf (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
#!/bin/bash

set -e

RULESET="table ip x {
	set est-connlimit {
		type ipv4_addr
		size 65535
		flags dynamic
		elements = { 84.245.120.167 ct count over 20 }
	}
}"

$NFT -f - <<< $RULESET

RULESET="table ip x {
	set new-connlimit {
		type ipv4_addr
		size 65535
		flags dynamic
		ct count over 20
		elements = { 84.245.120.167 }
	}
}"

$NFT -f - <<< $RULESET